diff options
| author | Alp Toker <alp@nuanti.com> | 2014-05-15 22:26:36 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2014-05-15 22:26:36 +0000 |
| commit | 82893e7e14eb44c73353134eda51f91be0209b08 (patch) | |
| tree | 1c454e552db7ab0a2d5abfb341203bf6b92bfa9e /lib/Tooling/CompilationDatabase.cpp | |
| parent | 61e1f5cc721b67ea42d962024ebd0d323f7a7f93 (diff) | |
| download | clang-82893e7e14eb44c73353134eda51f91be0209b08.tar.gz clang-82893e7e14eb44c73353134eda51f91be0209b08.tar.bz2 clang-82893e7e14eb44c73353134eda51f91be0209b08.tar.xz | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Tooling/CompilationDatabase.cpp')
| -rw-r--r-- | lib/Tooling/CompilationDatabase.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Tooling/CompilationDatabase.cpp b/lib/Tooling/CompilationDatabase.cpp index a70e066d29..164a38d423 100644 --- a/lib/Tooling/CompilationDatabase.cpp +++ b/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 |
