1//===- MemoryRegion.h -----------------------------------------------------===//
2//
3//                     The MCLinker Project
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9#ifndef MCLD_SUPPORT_MEMORYREGION_H
10#define MCLD_SUPPORT_MEMORYREGION_H
11
12#include <mcld/ADT/TypeTraits.h>
13#include <llvm/ADT/ArrayRef.h>
14#include <llvm/Support/DataTypes.h>
15
16namespace mcld {
17
18typedef NonConstTraits<uint8_t>::pointer Address;
19typedef ConstTraits<uint8_t>::pointer ConstAddress;
20
21typedef llvm::ArrayRef<uint8_t> ConstMemoryRegion;
22typedef llvm::MutableArrayRef<uint8_t> MemoryRegion;
23
24} // namespace mcld
25
26#endif
27