Out-of-line CompilerInstance::takeSema to avoid a header dependence from CompilerInstance.h on Sema.h

Hopefully this fixes the libstdc++ build on some of the buildbots after
r215321.

llvm-svn: 215325
This commit is contained in:
David Blaikie
2014-08-10 20:12:39 +00:00
parent 680c4c898c
commit 6153581a40
2 changed files with 6 additions and 2 deletions

View File

@@ -460,7 +460,7 @@ public:
return *TheSema; return *TheSema;
} }
std::unique_ptr<Sema> takeSema() { return std::move(TheSema); } std::unique_ptr<Sema> takeSema();
void resetAndLeakSema() { BuryPointer(TheSema.release()); } void resetAndLeakSema() { BuryPointer(TheSema.release()); }
/// } /// }

View File

@@ -109,6 +109,10 @@ void CompilerInstance::setCodeCompletionConsumer(CodeCompleteConsumer *Value) {
CompletionConsumer.reset(Value); CompletionConsumer.reset(Value);
} }
std::unique_ptr<Sema> CompilerInstance::takeSema() {
return std::move(TheSema);
}
IntrusiveRefCntPtr<ASTReader> CompilerInstance::getModuleManager() const { IntrusiveRefCntPtr<ASTReader> CompilerInstance::getModuleManager() const {
return ModuleManager; return ModuleManager;
} }