summaryrefslogtreecommitdiffstats
path: root/clang/lib/Tooling/CompilationDatabase.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-15 22:26:36 +0000
committerAlp Toker <alp@nuanti.com>2014-05-15 22:26:36 +0000
commit1761f11801c120c94bed861a580ac8218a1b4cfa (patch)
treeadb3ab5a3357acc07dd16446dffba8ceb25f2836 /clang/lib/Tooling/CompilationDatabase.cpp
parentb0f2f146bb6574ec8eba5ead788d95f47a7cc3ba (diff)
downloadbcm5719-llvm-1761f11801c120c94bed861a580ac8218a1b4cfa.tar.gz
bcm5719-llvm-1761f11801c120c94bed861a580ac8218a1b4cfa.zip
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
Diffstat (limited to 'clang/lib/Tooling/CompilationDatabase.cpp')
-rw-r--r--clang/lib/Tooling/CompilationDatabase.cpp6
1 files changed, 3 insertions, 3 deletions
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<const char *> Args,
IntrusiveRefCntPtr<clang::DiagnosticIDs>(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<driver::Driver> 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
OpenPOWER on IntegriCloud