]> granicus.if.org Git - clang/commitdiff
Move the body out of line to try to fix a buildbot.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 19 Aug 2014 14:36:35 +0000 (14:36 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 19 Aug 2014 14:36:35 +0000 (14:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215980 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/CodeGen/CodeGenAction.h
lib/CodeGen/CodeGenAction.cpp

index 2408bc4f9e7cc7e075e0a7acb188957bfda7bae5..f8fd56152f23b0b85f73b985a52b70f55d826fd4 100644 (file)
@@ -54,7 +54,7 @@ public:
 
   /// Take the generated LLVM module, for use after the action has been run.
   /// The result may be null on failure.
-  std::unique_ptr<llvm::Module> takeModule() { return std::move(TheModule); }
+  std::unique_ptr<llvm::Module> takeModule();
 
   /// Take the LLVM context used by this action.
   llvm::LLVMContext *takeLLVMContext();
index ab0ca18a3de9aa38f63275248a822e722297729b..53074a655041c637832842af3c8aff8691824172 100644 (file)
@@ -579,6 +579,10 @@ void CodeGenAction::EndSourceFileAction() {
   TheModule.reset(BEConsumer->takeModule());
 }
 
+std::unique_ptr<llvm::Module> CodeGenAction::takeModule() {
+  return std::move(TheModule);
+}
+
 llvm::LLVMContext *CodeGenAction::takeLLVMContext() {
   OwnsVMContext = false;
   return VMContext;