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