summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-26 21:33:40 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-26 21:33:40 +0000
commitd3afa0c7fbac37046c58a72ebbc6733bf7a64845 (patch)
treefee14b4954dd89fd36ca91ab368081be64e062aa /clang/tools/c-index-test
parente5edbf9a16f3c91eae3aee58d78f6dc632ae0372 (diff)
downloadbcm5719-llvm-d3afa0c7fbac37046c58a72ebbc6733bf7a64845.tar.gz
bcm5719-llvm-d3afa0c7fbac37046c58a72ebbc6733bf7a64845.zip
[PCH/modules] Require the preprocessing record option to match the used PCH, if modules are enabled.
The preprocessing record becomes important when modules are enabled, since it is used to calculate the module cache hash. llvm-svn: 180635
Diffstat (limited to 'clang/tools/c-index-test')
-rw-r--r--clang/tools/c-index-test/c-index-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index 9b083e49f5c..3f39a78625d 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -3508,6 +3508,7 @@ int write_pch_file(const char *filename, int argc, const char *argv[]) {
unsaved_files,
num_unsaved_files,
CXTranslationUnit_Incomplete |
+ CXTranslationUnit_DetailedPreprocessingRecord|
CXTranslationUnit_ForSerialization);
if (!TU) {
fprintf(stderr, "Unable to load translation unit!\n");
OpenPOWER on IntegriCloud