diff options
author | Sean Silva <silvas@purdue.edu> | 2013-01-20 01:58:28 +0000 |
---|---|---|
committer | Sean Silva <silvas@purdue.edu> | 2013-01-20 01:58:28 +0000 |
commit | f1b49e237f60b4880b545d32c724a7387b937a81 (patch) | |
tree | 6d6190246e8f04674f4bfa371b29d15b22f74224 /clang/tools/libclang | |
parent | 2118a5cd2bf1ed98823e7ee9b52bb51bb7a3b33b (diff) | |
download | bcm5719-llvm-f1b49e237f60b4880b545d32c724a7387b937a81.tar.gz bcm5719-llvm-f1b49e237f60b4880b545d32c724a7387b937a81.zip |
Nuke SetUpBuildDumpLog.
Also, it was the only reason that `argc` and `argv` were being passed
into createDiagnostics, so remove those parameters and clean up callers.
llvm-svn: 172945
Diffstat (limited to 'clang/tools/libclang')
-rw-r--r-- | clang/tools/libclang/CIndex.cpp | 4 | ||||
-rw-r--r-- | clang/tools/libclang/Indexing.cpp | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 7d999b86fbb..f8c6f690962 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -2587,9 +2587,7 @@ static void clang_parseTranslationUnit_Impl(void *UserData) { // Configure the diagnostics. IntrusiveRefCntPtr<DiagnosticsEngine> - Diags(CompilerInstance::createDiagnostics(new DiagnosticOptions, - num_command_line_args, - command_line_args)); + Diags(CompilerInstance::createDiagnostics(new DiagnosticOptions)); // Recover resources if we crash before exiting this function. llvm::CrashRecoveryContextCleanupRegistrar<DiagnosticsEngine, diff --git a/clang/tools/libclang/Indexing.cpp b/clang/tools/libclang/Indexing.cpp index 3bbd74a9b2e..b2866502316 100644 --- a/clang/tools/libclang/Indexing.cpp +++ b/clang/tools/libclang/Indexing.cpp @@ -543,8 +543,6 @@ static void clang_indexSourceFile_Impl(void *UserData) { // Configure the diagnostics. IntrusiveRefCntPtr<DiagnosticsEngine> Diags(CompilerInstance::createDiagnostics(new DiagnosticOptions, - num_command_line_args, - command_line_args, CaptureDiag, /*ShouldOwnClient=*/true, /*ShouldCloneClient=*/false)); |