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 | d47afb96a3f988e6d21a92fe4dfe875ab227c7c0 (patch) | |
tree | cebca4eee1c4ca26c5f1face20882ffc7817c203 /tools | |
parent | d2ff76b84c2f018f438eac2c2dd8b82bde441468 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/diagtool/ShowEnabledWarnings.cpp | 3 | ||||
-rw-r--r-- | tools/driver/cc1_main.cpp | 2 | ||||
-rw-r--r-- | tools/libclang/CIndex.cpp | 4 | ||||
-rw-r--r-- | tools/libclang/Indexing.cpp | 2 |
4 files changed, 3 insertions, 8 deletions
diff --git a/tools/diagtool/ShowEnabledWarnings.cpp b/tools/diagtool/ShowEnabledWarnings.cpp index abd69fd0af..bcc7520c1b 100644 --- a/tools/diagtool/ShowEnabledWarnings.cpp +++ b/tools/diagtool/ShowEnabledWarnings.cpp @@ -71,8 +71,7 @@ createDiagnostics(unsigned int argc, char **argv) { // Build the diagnostics parser IntrusiveRefCntPtr<DiagnosticsEngine> FinalDiags = - CompilerInstance::createDiagnostics(&Invocation->getDiagnosticOpts(), - argc, argv); + CompilerInstance::createDiagnostics(&Invocation->getDiagnosticOpts()); if (!FinalDiags) return NULL; diff --git a/tools/driver/cc1_main.cpp b/tools/driver/cc1_main.cpp index 6e1920022f..f54c87898c 100644 --- a/tools/driver/cc1_main.cpp +++ b/tools/driver/cc1_main.cpp @@ -81,7 +81,7 @@ int cc1_main(const char **ArgBegin, const char **ArgEnd, CompilerInvocation::GetResourcesPath(Argv0, MainAddr); // Create the actual diagnostics engine. - Clang->createDiagnostics(ArgEnd - ArgBegin, const_cast<char**>(ArgBegin)); + Clang->createDiagnostics(); if (!Clang->hasDiagnostics()) return 1; diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 7d999b86fb..f8c6f69096 100644 --- a/tools/libclang/CIndex.cpp +++ b/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/tools/libclang/Indexing.cpp b/tools/libclang/Indexing.cpp index 3bbd74a9b2..b286650231 100644 --- a/tools/libclang/Indexing.cpp +++ b/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)); |