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

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