]> granicus.if.org Git - clang/commitdiff
Revert r241770 and add Basic to the dependencies of clang-check instead.
authorAdrian Prantl <aprantl@apple.com>
Thu, 9 Jul 2015 02:53:05 +0000 (02:53 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 9 Jul 2015 02:53:05 +0000 (02:53 +0000)
PR24067.

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

lib/Basic/FileManager.cpp
lib/Frontend/PCHContainerOperations.cpp
tools/clang-check/CMakeLists.txt

index c46e2c7db380823190a7f38b0006c6ae9a274396..1a636aefa6391cef41483271dbcae6e85b0be66d 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "clang/Basic/FileManager.h"
 #include "clang/Basic/FileSystemStatCache.h"
+#include "clang/Frontend/PCHContainerOperations.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/Config/llvm-config.h"
 #include "llvm/Support/FileSystem.h"
@@ -585,3 +586,5 @@ void FileManager::PrintStats() const {
 
   //llvm::errs() << PagesMapped << BytesOfPagesMapped << FSLookups;
 }
+
+PCHContainerOperations::~PCHContainerOperations() {}
index 6d6d3ff22db93cde0317d569613d6258d5236785..c749bb5c8db4089c1befcc1c315d025adc86d06f 100644 (file)
@@ -18,8 +18,6 @@
 #include "clang/Lex/ModuleLoader.h"
 using namespace clang;
 
-PCHContainerOperations::~PCHContainerOperations() {}
-
 namespace {
 
 /// \brief A PCHContainerGenerator that writes out the PCH to a flat file.
@@ -68,4 +66,3 @@ void RawPCHContainerOperations::ExtractPCH(
   StreamFile.init((const unsigned char *)Buffer.getBufferStart(),
                   (const unsigned char *)Buffer.getBufferEnd());
 }
-
index ee18d58f36d3916a8b842c2739f426cfa21586c5..d1572cb16639afe46c16d09a1c893ee1a5491b6a 100644 (file)
@@ -10,6 +10,7 @@ add_clang_executable(clang-check
 
 target_link_libraries(clang-check
   clangAST
+  clangBasic
   clangCodeGen
   clangDriver
   clangFrontend