From 1761f11801c120c94bed861a580ac8218a1b4cfa Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Thu, 15 May 2014 22:26:36 +0000 Subject: Eliminate DefaultImageName from the Driver constructor All callers were passing in "a.out" or garbage so a sensible default works fine here as a cleanup. This also brings about the possibility of adapting the value based on the driver's compatibility mode in future. The setting can still be changed via Driver::DefaultImageName as needed. llvm-svn: 208926 --- clang/lib/Tooling/CompilationDatabase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/Tooling/CompilationDatabase.cpp') diff --git a/clang/lib/Tooling/CompilationDatabase.cpp b/clang/lib/Tooling/CompilationDatabase.cpp index a70e066d296..164a38d4232 100644 --- a/clang/lib/Tooling/CompilationDatabase.cpp +++ b/clang/lib/Tooling/CompilationDatabase.cpp @@ -212,11 +212,11 @@ static bool stripPositionalArgs(std::vector Args, IntrusiveRefCntPtr(new DiagnosticIDs()), &*DiagOpts, &DiagClient, false); - // Neither clang executable nor default image name are required since the - // jobs the driver builds will not be executed. + // The clang executable path isn't required since the jobs the driver builds + // will not be executed. std::unique_ptr NewDriver(new driver::Driver( /* ClangExecutable= */ "", llvm::sys::getDefaultTargetTriple(), - /* DefaultImageName= */ "", Diagnostics)); + Diagnostics)); NewDriver->setCheckInputsExist(false); // This becomes the new argv[0]. The value is actually not important as it -- cgit v1.2.3