[WinEH] Run cleanup handlers when an exception is thrown
[oota-llvm.git] / include / llvm / Object / IRObjectFile.h
index 10ea05ddf1f7913cfe6e45124d72e817450ab573..74f46667ce64a3f3c451590931709b8d95084cda 100644 (file)
@@ -49,7 +49,7 @@ public:
   Module &getModule() {
     return *M;
   }
-  std::unique_ptr<Module> takeModule() { return std::move(M); }
+  std::unique_ptr<Module> takeModule();
 
   static inline bool classof(const Binary *v) {
     return v->isIR();
@@ -65,8 +65,8 @@ public:
   static ErrorOr<MemoryBufferRef>
   findBitcodeInMemBuffer(MemoryBufferRef Object);
 
-  static ErrorOr<std::unique_ptr<IRObjectFile>>
-  createIRObjectFile(MemoryBufferRef Object, LLVMContext &Context);
+  static ErrorOr<std::unique_ptr<IRObjectFile>> create(MemoryBufferRef Object,
+                                                       LLVMContext &Context);
 };
 }
 }