]> granicus.if.org Git - clang/commitdiff
Out-of-line CompilerInstance::takeSema to avoid a header dependence from CompilerInst...
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 10 Aug 2014 20:12:39 +0000 (20:12 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 10 Aug 2014 20:12:39 +0000 (20:12 +0000)
Hopefully this fixes the libstdc++ build on some of the buildbots after
r215321.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215325 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/CompilerInstance.h
lib/Frontend/CompilerInstance.cpp

index 7194057462cde721c553def736cba6a4c038c12d..89397d394577eaef1446c8f8f5c14c9648aa7450 100644 (file)
@@ -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()); }
 
   /// }
index 6b8669e9a1e20d4106324394d00f60d6100b47f5..d8f4400f447bc7d738c6969e83f764881e554934 100644 (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;
 }