From 9c22f87b1374b06dc6c07f6e8047890e390bbe2d Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Tue, 18 Jun 2013 15:03:28 +0000 Subject: 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 --- include/llvm/Object/Binary.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/llvm/Object/Binary.h') 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; } -- cgit v1.1