X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FObject%2FBinary.h;h=a3f5625cc9b7fe2f42bac73f4617353cdd65b539;hb=d3d5e6d8eb8f4bbb26decb582f0730600ed8a53d;hp=78fcf6feb8519e663614ebbef7c189e91dd71612;hpb=fd7aa38e304a09fa0ef51b85b773b649b7e58c5e;p=oota-llvm.git diff --git a/include/llvm/Object/Binary.h b/include/llvm/Object/Binary.h index 78fcf6feb85..a3f5625cc9b 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; }