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 | 1761f11801c120c94bed861a580ac8218a1b4cfa (patch) | |
tree | adb3ab5a3357acc07dd16446dffba8ceb25f2836 /clang/lib/Tooling/Tooling.cpp | |
parent | b0f2f146bb6574ec8eba5ead788d95f47a7cc3ba (diff) | |
download | bcm5719-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/Tooling.cpp')
-rw-r--r-- | clang/lib/Tooling/Tooling.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Tooling/Tooling.cpp b/clang/lib/Tooling/Tooling.cpp index 5f4c46d6ef3..610bfc8f269 100644 --- a/clang/lib/Tooling/Tooling.cpp +++ b/clang/lib/Tooling/Tooling.cpp @@ -54,10 +54,8 @@ FrontendActionFactory::~FrontendActionFactory() {} /// \brief Builds a clang driver initialized for running clang tools. static clang::driver::Driver *newDriver(clang::DiagnosticsEngine *Diagnostics, const char *BinaryName) { - const char *DefaultOutputName = "a.out"; clang::driver::Driver *CompilerDriver = new clang::driver::Driver( - BinaryName, llvm::sys::getDefaultTargetTriple(), - DefaultOutputName, *Diagnostics); + BinaryName, llvm::sys::getDefaultTargetTriple(), *Diagnostics); CompilerDriver->setTitle("clang_based_tool"); return CompilerDriver; } |