[Object/ELF] sh_type is not a bitfield. Fixes RuntimeDyld test failure on ARM.
[oota-llvm.git] / include / llvm / Object / Binary.h
index 78fcf6feb8519e663614ebbef7c189e91dd71612..a3f5625cc9b7fe2f42bac73f4617353cdd65b539 100644 (file)
@@ -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;
   }