diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-07-17 01:19:54 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-07-17 01:19:54 +0000 |
commit | 1e6cac6da0b8282a8bbba7bdb3dd8fe63ad41d07 (patch) | |
tree | 795674011a74557d0db2854c02f4a70d0bd20377 /tools/clang-check | |
parent | db680fc475dca5ccce4045923ecee3a11496d6ba (diff) | |
download | clang-1e6cac6da0b8282a8bbba7bdb3dd8fe63ad41d07.tar.gz |
Make the clang module container format selectable from the command line.
- introduces a new cc1 option -fmodule-format=[raw,obj]
with 'raw' being the default
- supports arbitrary module container formats that libclang is agnostic to
- adds the format to the module hash to avoid collisions
- splits the old PCHContainerOperations into PCHContainerWriter and
a PCHContainerReader.
Thanks to Richard Smith for reviewing this patch!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-check')
-rw-r--r-- | tools/clang-check/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tools/clang-check/ClangCheck.cpp | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/tools/clang-check/CMakeLists.txt b/tools/clang-check/CMakeLists.txt index d1572cb166..04151a8e03 100644 --- a/tools/clang-check/CMakeLists.txt +++ b/tools/clang-check/CMakeLists.txt @@ -11,7 +11,6 @@ add_clang_executable(clang-check target_link_libraries(clang-check clangAST clangBasic - clangCodeGen clangDriver clangFrontend clangRewriteFrontend diff --git a/tools/clang-check/ClangCheck.cpp b/tools/clang-check/ClangCheck.cpp index 2682e0fcd8..a9934c978d 100644 --- a/tools/clang-check/ClangCheck.cpp +++ b/tools/clang-check/ClangCheck.cpp @@ -160,8 +160,7 @@ int main(int argc, const char **argv) { CommonOptionsParser OptionsParser(argc, argv, ClangCheckCategory); ClangTool Tool(OptionsParser.getCompilations(), - OptionsParser.getSourcePathList(), - std::make_shared<clang::ObjectFilePCHContainerOperations>()); + OptionsParser.getSourcePathList()); // Clear adjusters because -fsyntax-only is inserted by the default chain. Tool.clearArgumentsAdjusters(); |