forked from OSchip/llvm-project
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:
parent
680c4c898c
commit
6153581a40
|
@ -460,7 +460,7 @@ public:
|
|||
return *TheSema;
|
||||
}
|
||||
|
||||
std::unique_ptr<Sema> takeSema() { return std::move(TheSema); }
|
||||
std::unique_ptr<Sema> takeSema();
|
||||
void resetAndLeakSema() { BuryPointer(TheSema.release()); }
|
||||
|
||||
/// }
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue