Home | History | Annotate | Download | only in Support
      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 
     17 namespace mcld {
     18 
     19 typedef NonConstTraits<uint8_t>::pointer Address;
     20 typedef ConstTraits<uint8_t>::pointer ConstAddress;
     21 
     22 typedef llvm::ArrayRef<uint8_t> ConstMemoryRegion;
     23 typedef llvm::MutableArrayRef<uint8_t> MemoryRegion;
     24 
     25 }  // namespace mcld
     26 
     27 #endif  // MCLD_SUPPORT_MEMORYREGION_H_
     28