diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-10-11 16:52:23 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-10-11 16:52:23 +0000 |
commit | 7845f1e80e424c9b9d51ab9065e2a034226301d1 (patch) | |
tree | dfb4ae87ab85edb317ea98bdc5fdfc46f179a4b7 /clang/tools/c-index-test | |
parent | afef640a9a75a1d4cbecb1d45dab333c2106989e (diff) | |
download | bcm5719-llvm-7845f1e80e424c9b9d51ab9065e2a034226301d1.tar.gz bcm5719-llvm-7845f1e80e424c9b9d51ab9065e2a034226301d1.zip |
Eliminate clang_setUseExternalASTGeneration() from libclang. Between
improvements to the compiler and the introduction of crash recovery,
it no longer makes sense to allow this mode. Moreover, this eliminates
one use of the "clang" executable from within libclang; we'd like them
all to go away.
llvm-svn: 116207
Diffstat (limited to 'clang/tools/c-index-test')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index ca4b1e3169c..4b9ab500dc5 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -660,8 +660,6 @@ int perform_test_load_tu(const char *file, const char *filter, int perform_test_load_source(int argc, const char **argv, const char *filter, CXCursorVisitor Visitor, PostVisitTU PV) { - const char *UseExternalASTs = - getenv("CINDEXTEST_USE_EXTERNAL_AST_GENERATION"); CXIndex Idx; CXTranslationUnit TU; struct CXUnsavedFile *unsaved_files = 0; @@ -673,9 +671,6 @@ int perform_test_load_source(int argc, const char **argv, !strcmp(filter, "local-display"))? 1 : 0, /* displayDiagnosics=*/1); - if (UseExternalASTs && strlen(UseExternalASTs)) - clang_setUseExternalASTGeneration(Idx, 1); - if (parse_remapped_files(argc, argv, 0, &unsaved_files, &num_unsaved_files)) { clang_disposeIndex(Idx); return -1; @@ -702,8 +697,6 @@ int perform_test_load_source(int argc, const char **argv, int perform_test_reparse_source(int argc, const char **argv, int trials, const char *filter, CXCursorVisitor Visitor, PostVisitTU PV) { - const char *UseExternalASTs = - getenv("CINDEXTEST_USE_EXTERNAL_AST_GENERATION"); CXIndex Idx; CXTranslationUnit TU; struct CXUnsavedFile *unsaved_files = 0; @@ -715,9 +708,6 @@ int perform_test_reparse_source(int argc, const char **argv, int trials, !strcmp(filter, "local") ? 1 : 0, /* displayDiagnosics=*/1); - if (UseExternalASTs && strlen(UseExternalASTs)) - clang_setUseExternalASTGeneration(Idx, 1); - if (parse_remapped_files(argc, argv, 0, &unsaved_files, &num_unsaved_files)) { clang_disposeIndex(Idx); return -1; |