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
14#include <llvm/ADT/ArrayRef.h>
15#include <llvm/Support/DataTypes.h>
16
17namespace mcld {
18
19typedef NonConstTraits<uint8_t>::pointer Address;
20typedef ConstTraits<uint8_t>::pointer ConstAddress;
21
22typedef llvm::ArrayRef<uint8_t> ConstMemoryRegion;
23typedef llvm::MutableArrayRef<uint8_t> MemoryRegion;
24
25}  // namespace mcld
26
27#endif  // MCLD_SUPPORT_MEMORYREGION_H_
28