Support for function summary index bitcode sections and files.
[oota-llvm.git] / include / llvm / Object / Binary.h
index 1ec005a970ec978529525f00fdd03076eaa9f3e4..36911d8f327a1a073b691dd00b2c9cec29946d63 100644 (file)
@@ -43,6 +43,7 @@ protected:
     ID_MachOUniversalBinary,
     ID_COFFImportFile,
     ID_IR, // LLVM IR
+    ID_FunctionIndex, // Function summary index
 
     // Object and children.
     ID_StartObjects,
@@ -122,6 +123,10 @@ public:
     return TypeID == ID_IR;
   }
 
+  bool isFunctionIndex() const {
+    return TypeID == ID_FunctionIndex;
+  }
+
   bool isLittleEndian() const {
     return !(TypeID == ID_ELF32B || TypeID == ID_ELF64B ||
              TypeID == ID_MachO32B || TypeID == ID_MachO64B);