Move createIRObjectFile to the IRObjectFile class and return the concrete type.
[oota-llvm.git] / include / llvm / Object / IRObjectFile.h
index 2ce9c95d0848d919dbd9b423094b39f6035eff7e..bc69de40cb56e872d20408bdaf3d12b41b1a2b36 100644 (file)
@@ -42,6 +42,10 @@ public:
   static inline bool classof(const Binary *v) {
     return v->isIR();
   }
+
+  static ErrorOr<IRObjectFile *>
+  createIRObjectFile(std::unique_ptr<MemoryBuffer> Object,
+                     LLVMContext &Context);
 };
 }
 }