aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Object/Binary.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-06-18 15:03:28 +0000
committerAlexey Samsonov <samsonov@google.com>2013-06-18 15:03:28 +0000
commit9c22f87b1374b06dc6c07f6e8047890e390bbe2d (patch)
tree4b4111e1ecfdffcfc137e357afdb764d72ea3696 /include/llvm/Object/Binary.h
parent79ac9c8402d4113d42ff2d713c7acdfa800d2397 (diff)
downloadexternal_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.h5
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;
}