From 2b6cf2dd5a83b7520547f1a5b36aed6ea145bc02 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 9 Jul 2015 02:53:05 +0000 Subject: [PATCH] Revert r241770 and add Basic to the dependencies of clang-check instead. PR24067. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241782 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/FileManager.cpp | 3 +++ lib/Frontend/PCHContainerOperations.cpp | 3 --- tools/clang-check/CMakeLists.txt | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Basic/FileManager.cpp b/lib/Basic/FileManager.cpp index c46e2c7db3..1a636aefa6 100644 --- a/lib/Basic/FileManager.cpp +++ b/lib/Basic/FileManager.cpp @@ -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() {} diff --git a/lib/Frontend/PCHContainerOperations.cpp b/lib/Frontend/PCHContainerOperations.cpp index 6d6d3ff22d..c749bb5c8d 100644 --- a/lib/Frontend/PCHContainerOperations.cpp +++ b/lib/Frontend/PCHContainerOperations.cpp @@ -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()); } - diff --git a/tools/clang-check/CMakeLists.txt b/tools/clang-check/CMakeLists.txt index ee18d58f36..d1572cb166 100644 --- a/tools/clang-check/CMakeLists.txt +++ b/tools/clang-check/CMakeLists.txt @@ -10,6 +10,7 @@ add_clang_executable(clang-check target_link_libraries(clang-check clangAST + clangBasic clangCodeGen clangDriver clangFrontend -- 2.40.0