aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-11-27 16:10:37 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-11-27 16:10:37 +0000
commit17c874a944090a74aa890d7b5ef361be6e4a0184 (patch)
tree3786089ca40c3c00da15be059bc4375d83822b12
parentb85403658a77e9c19c391c8f02bc7767544a25d9 (diff)
Remove some dead code. CLANG_IS_PRODUCTION is now just a build flag and
is not used in any #ifdef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168703 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Driver/Driver.h1
-rw-r--r--lib/Driver/Driver.cpp1
-rw-r--r--lib/Frontend/CreateInvocationFromCommandLine.cpp2
-rw-r--r--lib/Tooling/Tooling.cpp2
-rw-r--r--tools/driver/Makefile5
-rw-r--r--tools/driver/driver.cpp7
6 files changed, 3 insertions, 15 deletions
diff --git a/include/clang/Driver/Driver.h b/include/clang/Driver/Driver.h
index f5c451f1e3..bb86cffdbd 100644
--- a/include/clang/Driver/Driver.h
+++ b/include/clang/Driver/Driver.h
@@ -178,7 +178,6 @@ public:
Driver(StringRef _ClangExecutable,
StringRef _DefaultTargetTriple,
StringRef _DefaultImageName,
- bool IsProduction,
DiagnosticsEngine &_Diags);
~Driver();
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index 68471ec04c..1e1695c72f 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -46,7 +46,6 @@ using namespace clang;
Driver::Driver(StringRef ClangExecutable,
StringRef DefaultTargetTriple,
StringRef DefaultImageName,
- bool IsProduction,
DiagnosticsEngine &Diags)
: Opts(createDriverOptTable()), Diags(Diags),
ClangExecutable(ClangExecutable), SysRoot(DEFAULT_SYSROOT),
diff --git a/lib/Frontend/CreateInvocationFromCommandLine.cpp b/lib/Frontend/CreateInvocationFromCommandLine.cpp
index d82cb6d051..6def887ae5 100644
--- a/lib/Frontend/CreateInvocationFromCommandLine.cpp
+++ b/lib/Frontend/CreateInvocationFromCommandLine.cpp
@@ -48,7 +48,7 @@ clang::createInvocationFromCommandLine(ArrayRef<const char *> ArgList,
// FIXME: We shouldn't have to pass in the path info.
driver::Driver TheDriver("clang", llvm::sys::getDefaultTargetTriple(),
- "a.out", false, *Diags);
+ "a.out", *Diags);
// Don't check that inputs exist, they may have been remapped.
TheDriver.setCheckInputsExist(false);
diff --git a/lib/Tooling/Tooling.cpp b/lib/Tooling/Tooling.cpp
index af20254811..9c38708f4b 100644
--- a/lib/Tooling/Tooling.cpp
+++ b/lib/Tooling/Tooling.cpp
@@ -48,7 +48,7 @@ static clang::driver::Driver *newDriver(clang::DiagnosticsEngine *Diagnostics,
const std::string DefaultOutputName = "a.out";
clang::driver::Driver *CompilerDriver = new clang::driver::Driver(
BinaryName, llvm::sys::getDefaultTargetTriple(),
- DefaultOutputName, false, *Diagnostics);
+ DefaultOutputName, *Diagnostics);
CompilerDriver->setTitle("clang_based_tool");
return CompilerDriver;
}
diff --git a/tools/driver/Makefile b/tools/driver/Makefile
index f07b0f2c92..1ff3c50d6e 100644
--- a/tools/driver/Makefile
+++ b/tools/driver/Makefile
@@ -63,8 +63,3 @@ else
TOOL_INFO_BUILD_VERSION :=
endif
endif
-
-# Translate make variable to define when building a "production" clang.
-ifdef CLANG_IS_PRODUCTION
-CPP.Defines += -DCLANG_IS_PRODUCTION
-endif
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp
index 8233247c90..a2d5414e9a 100644
--- a/tools/driver/driver.cpp
+++ b/tools/driver/driver.cpp
@@ -397,13 +397,8 @@ int main(int argc_, const char **argv_) {
DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient);
ProcessWarningOptions(Diags, *DiagOpts);
-#ifdef CLANG_IS_PRODUCTION
- const bool IsProduction = true;
-#else
- const bool IsProduction = false;
-#endif
Driver TheDriver(Path.str(), llvm::sys::getDefaultTargetTriple(),
- "a.out", IsProduction, Diags);
+ "a.out", Diags);
// Attempt to find the original path used to invoke the driver, to determine
// the installed path. We do this manually, because we want to support that