aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2006-05-18 02:10:31 +0000
committerOwen Anderson <resistor@mac.com>2006-05-18 02:10:31 +0000
commit1d8b8535ec6ccbf07b0e83c5be6aec51feed1d45 (patch)
treef604b53c5dab141a02d6c778b5fd19309dc319a3 /include/llvm/Module.h
parent0f3ac8d8d4ce23eb2ae6f9d850f389250874eea5 (diff)
Change Module to use TargetData-compatible strings internally.
This is part of the on-going work on PR 761. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r--include/llvm/Module.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index 017aaa3fee..18b081abc7 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -94,8 +94,7 @@ private:
SymbolTable *SymTab; ///< Symbol Table for the module
std::string ModuleID; ///< Human readable identifier for the module
std::string TargetTriple; ///< Platform target triple Module compiled on
- Endianness Endian; ///< Endianness assumed in the module
- PointerSize PtrSize; ///< Pointer size assumed in the module
+ std::string DataLayout; ///< Target data description
friend class Constant;
@@ -123,11 +122,11 @@ public:
/// Get the target endian information.
/// @returns Endianess - an enumeration for the endianess of the target
- Endianness getEndianness() const { return Endian; }
+ Endianness getEndianness() const;
/// Get the target pointer size.
/// @returns PointerSize - an enumeration for the size of the target's pointer
- PointerSize getPointerSize() const { return PtrSize; }
+ PointerSize getPointerSize() const;
/// Get any module-scope inline assembly blocks.
/// @returns a string containing the module-scope inline assembly blocks.
@@ -144,10 +143,10 @@ public:
void setTargetTriple(const std::string &T) { TargetTriple = T; }
/// Set the target endian information.
- void setEndianness(Endianness E) { Endian = E; }
+ void setEndianness(Endianness E);
/// Set the target pointer size.
- void setPointerSize(PointerSize PS) { PtrSize = PS; }
+ void setPointerSize(PointerSize PS);
/// Set the module-scope inline assembly blocks.
void setModuleInlineAsm(const std::string &Asm) { GlobalScopeAsm = Asm; }