summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2011-10-04 05:34:14 +0000
committerBob Wilson <bob.wilson@apple.com>2011-10-04 05:34:14 +0000
commit05de0298d2c3da8d42c2de6a95a765523e3baed0 (patch)
tree401e0b95adc1f98ec36dd10b00657d5a21e5756b /clang
parent8ecdb9b33a304f1ee90e885e96b16c4401e39ea9 (diff)
downloadbcm5719-llvm-05de0298d2c3da8d42c2de6a95a765523e3baed0.tar.gz
bcm5719-llvm-05de0298d2c3da8d42c2de6a95a765523e3baed0.zip
Rip out flags for controlling C++ "production mode" separately.
This is old leftover cruft from the days when C++ was not yet ready for prime time. llvm-svn: 141063
Diffstat (limited to 'clang')
-rw-r--r--clang/examples/clang-interpreter/main.cpp3
-rw-r--r--clang/include/clang/Driver/Driver.h2
-rw-r--r--clang/lib/Driver/Driver.cpp5
-rw-r--r--clang/lib/Frontend/CreateInvocationFromCommandLine.cpp2
-rw-r--r--clang/tools/driver/Makefile9
-rw-r--r--clang/tools/driver/driver.cpp9
6 files changed, 5 insertions, 25 deletions
diff --git a/clang/examples/clang-interpreter/main.cpp b/clang/examples/clang-interpreter/main.cpp
index 8eca4454df5..c04f2b5f251 100644
--- a/clang/examples/clang-interpreter/main.cpp
+++ b/clang/examples/clang-interpreter/main.cpp
@@ -76,8 +76,7 @@ int main(int argc, const char **argv, char * const *envp) {
llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
DiagnosticsEngine Diags(DiagID, DiagClient);
Driver TheDriver(Path.str(), llvm::sys::getHostTriple(),
- "a.out", /*IsProduction=*/false, /*CXXIsProduction=*/false,
- Diags);
+ "a.out", /*IsProduction=*/false, Diags);
TheDriver.setTitle("clang interpreter");
// FIXME: This is a hack to try to force the driver to do something we can
diff --git a/clang/include/clang/Driver/Driver.h b/clang/include/clang/Driver/Driver.h
index 549893e6bf8..6fdf6fcfad6 100644
--- a/clang/include/clang/Driver/Driver.h
+++ b/clang/include/clang/Driver/Driver.h
@@ -189,7 +189,7 @@ public:
Driver(StringRef _ClangExecutable,
StringRef _DefaultHostTriple,
StringRef _DefaultImageName,
- bool IsProduction, bool CXXIsProduction,
+ bool IsProduction,
DiagnosticsEngine &_Diags);
~Driver();
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 6f49bec01bf..e9ab78ddcba 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -49,7 +49,7 @@ using namespace clang;
Driver::Driver(StringRef ClangExecutable,
StringRef DefaultHostTriple,
StringRef DefaultImageName,
- bool IsProduction, bool CXXIsProduction,
+ bool IsProduction,
DiagnosticsEngine &Diags)
: Opts(createDriverOptTable()), Diags(Diags),
ClangExecutable(ClangExecutable), UseStdLib(true),
@@ -73,9 +73,6 @@ Driver::Driver(StringRef ClangExecutable,
CCCClangArchs.insert(llvm::Triple::x86);
CCCClangArchs.insert(llvm::Triple::x86_64);
CCCClangArchs.insert(llvm::Triple::arm);
-
- if (!CXXIsProduction)
- CCCUseClangCXX = false;
}
Name = llvm::sys::path::stem(ClangExecutable);
diff --git a/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp b/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
index ccfa865233f..fc1508103c2 100644
--- a/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
+++ b/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
@@ -49,7 +49,7 @@ clang::createInvocationFromCommandLine(ArrayRef<const char *> ArgList,
// FIXME: We shouldn't have to pass in the path info.
driver::Driver TheDriver("clang", llvm::sys::getHostTriple(),
- "a.out", false, false, *Diags);
+ "a.out", false, *Diags);
// Don't check that inputs exist, they may have been remapped.
TheDriver.setCheckInputsExist(false);
diff --git a/clang/tools/driver/Makefile b/clang/tools/driver/Makefile
index 1ba8bc24d1f..6b34a991bf1 100644
--- a/clang/tools/driver/Makefile
+++ b/clang/tools/driver/Makefile
@@ -9,13 +9,7 @@
CLANG_LEVEL := ../..
TOOLNAME = clang
-ifndef CLANG_IS_PRODUCTION
TOOLALIAS = clang++
-else
- ifdef CLANGXX_IS_PRODUCTION
- TOOLALIAS = clang++
- endif
-endif
# We don't currently expect production Clang builds to be interested in
# plugins. This is important for startup performance.
@@ -73,6 +67,3 @@ endif
ifdef CLANG_IS_PRODUCTION
CPP.Defines += -DCLANG_IS_PRODUCTION
endif
-ifdef CLANGXX_IS_PRODUCTION
-CPP.Defines += -DCLANGXX_IS_PRODUCTION
-endif
diff --git a/clang/tools/driver/driver.cpp b/clang/tools/driver/driver.cpp
index b9268dfeb4f..bd1d2a2f5f3 100644
--- a/clang/tools/driver/driver.cpp
+++ b/clang/tools/driver/driver.cpp
@@ -379,18 +379,11 @@ int main(int argc_, const char **argv_) {
#ifdef CLANG_IS_PRODUCTION
const bool IsProduction = true;
-# ifdef CLANGXX_IS_PRODUCTION
- const bool CXXIsProduction = true;
-# else
- const bool CXXIsProduction = false;
-# endif
#else
const bool IsProduction = false;
- const bool CXXIsProduction = false;
#endif
Driver TheDriver(Path.str(), llvm::sys::getHostTriple(),
- "a.out", IsProduction, CXXIsProduction,
- Diags);
+ "a.out", IsProduction, 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
OpenPOWER on IntegriCloud