aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Object
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-11-27 06:39:22 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-11-27 06:39:22 +0000
commit95369163f58f06a6494ca9623184a8849ecf85f3 (patch)
treed4df3a0e8fcdb303818d09279421990cb2717383 /include/llvm/Object
parent2a0e97431ecef2aa6a24a16ced207d5b53fcfc2d (diff)
downloadexternal_llvm-95369163f58f06a6494ca9623184a8849ecf85f3.zip
external_llvm-95369163f58f06a6494ca9623184a8849ecf85f3.tar.gz
external_llvm-95369163f58f06a6494ca9623184a8849ecf85f3.tar.bz2
Object/Mach-O: Validate Mach-O magic and initialize format info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object')
-rw-r--r--include/llvm/Object/MachOObject.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/llvm/Object/MachOObject.h b/include/llvm/Object/MachOObject.h
index 74339cb..71164ac 100644
--- a/include/llvm/Object/MachOObject.h
+++ b/include/llvm/Object/MachOObject.h
@@ -43,10 +43,16 @@ public:
private:
OwningPtr<MemoryBuffer> Buffer;
-
-public:
- MachOObject(MemoryBuffer *Buffer);
+ /// Whether the object is little endian.
+ bool IsLittleEndian;
+ /// Whether the object is 64-bit.
+ bool Is64Bit;
+
+private:
+ MachOObject(MemoryBuffer *Buffer, bool IsLittleEndian, bool Is64Bit);
+
+public:
/// \brief Load a Mach-O object from a MemoryBuffer object.
///
/// \param Buffer - The buffer to load the object from. This routine takes