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:
@@ -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()); }
|
||||||
|
|
||||||
/// }
|
/// }
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user