]> granicus.if.org Git - clang/commitdiff
Rip out flags for controlling C++ "production mode" separately.
authorBob Wilson <bob.wilson@apple.com>
Tue, 4 Oct 2011 05:34:14 +0000 (05:34 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 4 Oct 2011 05:34:14 +0000 (05:34 +0000)
This is old leftover cruft from the days when C++ was not yet ready
for prime time.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141063 91177308-0d34-0410-b5e6-96231b3b80d8

examples/clang-interpreter/main.cpp
include/clang/Driver/Driver.h
lib/Driver/Driver.cpp
lib/Frontend/CreateInvocationFromCommandLine.cpp
tools/driver/Makefile
tools/driver/driver.cpp

index 8eca4454df50c9afc50acca61a74ac09f85e8249..c04f2b5f25153371a29bec2097b2478b4688ed36 100644 (file)
@@ -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
index 549893e6bf894d808832ecdaa7b58f0795b584fd..6fdf6fcfad649fad26ee0f2a87d297c138d2b826 100644 (file)
@@ -189,7 +189,7 @@ public:
   Driver(StringRef _ClangExecutable,
          StringRef _DefaultHostTriple,
          StringRef _DefaultImageName,
-         bool IsProduction, bool CXXIsProduction,
+         bool IsProduction,
          DiagnosticsEngine &_Diags);
   ~Driver();
 
index 6f49bec01bf57838780a2b07399aaeb725e1c814..e9ab78ddcba26e6a425f9b813649b7ea292693c9 100644 (file)
@@ -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);
index ccfa865233f9b64c334a6f099950350725f6dc39..fc1508103c2e6d9309f5ce3802c038a3173b66d7 100644 (file)
@@ -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);
index 1ba8bc24d1fb1df12ff5af17449eea70e7014949..6b34a991bf1894f16393578facb4deb409c2d87f 100644 (file)
@@ -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
index b9268dfeb4f1f152ae7a06d6951503f384539c13..bd1d2a2f5f35aaf8578e013df827d94922e5d1ef 100644 (file)
@@ -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