From: Rafael Espindola Date: Tue, 19 Aug 2014 14:36:35 +0000 (+0000) Subject: Move the body out of line to try to fix a buildbot. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a90ce5fae71373bbe7af730c18a49cac83cd62b;p=clang Move the body out of line to try to fix a buildbot. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215980 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/CodeGen/CodeGenAction.h b/include/clang/CodeGen/CodeGenAction.h index 2408bc4f9e..f8fd56152f 100644 --- a/include/clang/CodeGen/CodeGenAction.h +++ b/include/clang/CodeGen/CodeGenAction.h @@ -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 takeModule() { return std::move(TheModule); } + std::unique_ptr takeModule(); /// Take the LLVM context used by this action. llvm::LLVMContext *takeLLVMContext(); diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index ab0ca18a3d..53074a6550 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -579,6 +579,10 @@ void CodeGenAction::EndSourceFileAction() { TheModule.reset(BEConsumer->takeModule()); } +std::unique_ptr CodeGenAction::takeModule() { + return std::move(TheModule); +} + llvm::LLVMContext *CodeGenAction::takeLLVMContext() { OwnsVMContext = false; return VMContext;