summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-08-10 20:12:39 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-08-10 20:12:39 +0000
commit6153581a40f672000399bff17aa70bfb727da04c (patch)
tree4f358004ae24f36df42131cf8132123817e8f4dc
parent680c4c898c3ec1b10be6833e1dfad533724c4d20 (diff)
downloadbcm5719-llvm-6153581a40f672000399bff17aa70bfb727da04c.tar.gz
bcm5719-llvm-6153581a40f672000399bff17aa70bfb727da04c.zip
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
-rw-r--r--clang/include/clang/Frontend/CompilerInstance.h2
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp6
2 files changed, 6 insertions, 2 deletions
diff --git a/clang/include/clang/Frontend/CompilerInstance.h b/clang/include/clang/Frontend/CompilerInstance.h
index 7194057462c..89397d39457 100644
--- a/clang/include/clang/Frontend/CompilerInstance.h
+++ b/clang/include/clang/Frontend/CompilerInstance.h
@@ -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()); }
/// }
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<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;
}
OpenPOWER on IntegriCloud