aboutsummaryrefslogtreecommitdiff
path: root/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-13 15:35:05 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-13 15:35:05 +0000
commit1999844e7a18786e61e619e1dc6c789827541863 (patch)
treed02f3682053525eb6a40ab52cffd11a55d50e45a /tools/c-index-test/c-index-test.c
parent7bd067635df79f6ce4b9ffee394ea6d9e86e4290 (diff)
Add an options parameter to clang_saveTranslationUnit, because we'll want it later
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111016 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r--tools/c-index-test/c-index-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
index 323469c0f0..ef6bfb8a79 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/tools/c-index-test/c-index-test.c
@@ -1306,7 +1306,7 @@ int write_pch_file(const char *filename, int argc, const char *argv[]) {
return 1;
}
- if (clang_saveTranslationUnit(TU, filename))
+ if (clang_saveTranslationUnit(TU, filename, clang_defaultSaveOptions(TU)))
fprintf(stderr, "Unable to write PCH file %s\n", filename);
clang_disposeTranslationUnit(TU);
free_remapped_files(unsaved_files, num_unsaved_files);