diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-06-18 15:03:28 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-06-18 15:03:28 +0000 |
commit | 9c22f87b1374b06dc6c07f6e8047890e390bbe2d (patch) | |
tree | 4b4111e1ecfdffcfc137e357afdb764d72ea3696 /include/llvm/Object/Binary.h | |
parent | 79ac9c8402d4113d42ff2d713c7acdfa800d2397 (diff) | |
download | external_llvm-9c22f87b1374b06dc6c07f6e8047890e390bbe2d.zip external_llvm-9c22f87b1374b06dc6c07f6e8047890e390bbe2d.tar.gz external_llvm-9c22f87b1374b06dc6c07f6e8047890e390bbe2d.tar.bz2 |
Basic support for parsing Mach-O universal binaries in LLVMObject library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/Binary.h')
-rw-r--r-- | include/llvm/Object/Binary.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Object/Binary.h b/include/llvm/Object/Binary.h index 78fcf6f..a3f5625 100644 --- a/include/llvm/Object/Binary.h +++ b/include/llvm/Object/Binary.h @@ -38,6 +38,7 @@ protected: enum { ID_Archive, + ID_MachOUniversalBinary, // Object and children. ID_StartObjects, ID_COFF, @@ -87,6 +88,10 @@ public: return TypeID == ID_Archive; } + bool isMachOUniversalBinary() const { + return TypeID == ID_MachOUniversalBinary; + } + bool isELF() const { return TypeID >= ID_ELF32L && TypeID <= ID_ELF64B; } |