From 6153581a40f672000399bff17aa70bfb727da04c Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Sun, 10 Aug 2014 20:12:39 +0000 Subject: 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 --- clang/lib/Frontend/CompilerInstance.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'clang/lib/Frontend/CompilerInstance.cpp') diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 6b8669e9a1e..d8f4400f447 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -108,7 +108,11 @@ void CompilerInstance::setASTConsumer(std::unique_ptr Value) { void CompilerInstance::setCodeCompletionConsumer(CodeCompleteConsumer *Value) { CompletionConsumer.reset(Value); } - + +std::unique_ptr CompilerInstance::takeSema() { + return std::move(TheSema); +} + IntrusiveRefCntPtr CompilerInstance::getModuleManager() const { return ModuleManager; } -- cgit v1.2.3