]> granicus.if.org Git - clang/commitdiff
Remove the -ccc-echo option that is now unused.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 23 Jul 2013 17:58:53 +0000 (17:58 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 23 Jul 2013 17:58:53 +0000 (17:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186970 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Driver.h
include/clang/Driver/Options.td
lib/Driver/Compilation.cpp
lib/Driver/Driver.cpp
test/Driver/ccc-add-args.c

index 7633ae60daa5d6040e01ebbf48eaa6a95819f33a..eac7968e7709898f633ebcaf2b31e6f2d5fb543b 100644 (file)
@@ -129,9 +129,6 @@ public:
   /// Whether the driver is just the preprocessor.
   bool CCCIsCPP() const { return Mode == CPPMode; }
 
-  /// Echo commands while executing (in -v style).
-  unsigned CCCEcho : 1;
-
   /// Only print tool bindings, don't build any jobs.
   unsigned CCCPrintBindings : 1;
 
index 27a844a7908b825fe54aa1c58a32cc386058579f..3e2fe4d50e89e2219a69229799f035dd74662c6a 100644 (file)
@@ -114,8 +114,6 @@ def ccc_debug_Group : OptionGroup<"<clang debug/development internal options>">,
 class CCCDriverOpt : Group<ccc_driver_Group>, Flags<[DriverOption, HelpHidden]>;
 def driver_mode : Joined<["--"], "driver-mode=">, CCCDriverOpt,
   HelpText<"Set the driver mode to either 'gcc', 'g++' or 'cpp'">;
-def ccc_echo : Flag<["-"], "ccc-echo">, CCCDriverOpt,
-  HelpText<"Echo commands before running them">;
 def ccc_gcc_name : Separate<["-"], "ccc-gcc-name">, CCCDriverOpt,
   HelpText<"Name for native GCC compiler">,
   MetaVarName<"<gcc-path>">;
index b1dd37d6cdf40fbc942555a2bbd3781d6d848359..fdc6fc25c80f33e51572d401c986c8b5e16f89e7 100644 (file)
@@ -266,7 +266,7 @@ int Compilation::ExecuteCommand(const Command &C,
   std::copy(C.getArguments().begin(), C.getArguments().end(), Argv+1);
   Argv[C.getArguments().size() + 1] = 0;
 
-  if ((getDriver().CCCEcho || getDriver().CCPrintOptions ||
+  if ((getDriver().CCPrintOptions ||
        getArgs().hasArg(options::OPT_v)) && !getDriver().CCGenDiagnostics) {
     raw_ostream *OS = &llvm::errs();
 
index 98b87bebc0e63655d1142bf39017f2138f636411..91b6bc148f5efcef22c01bce64d2e69b868e4151 100644 (file)
@@ -55,7 +55,7 @@ Driver::Driver(StringRef ClangExecutable,
     DriverTitle("clang LLVM compiler"),
     CCPrintOptionsFilename(0), CCPrintHeadersFilename(0),
     CCLogDiagnosticsFilename(0),
-    CCCEcho(false), CCCPrintBindings(false),
+    CCCPrintBindings(false),
     CCPrintOptions(false), CCPrintHeaders(false), CCLogDiagnostics(false),
     CCGenDiagnostics(false), CCCGenericGCCName(""), CheckInputsExist(true),
     CCCUsePCH(true), SuppressMissingInputWarning(false) {
@@ -300,7 +300,6 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
   CCCPrintOptions = Args->hasArg(options::OPT_ccc_print_options);
   CCCPrintActions = Args->hasArg(options::OPT_ccc_print_phases);
   CCCPrintBindings = Args->hasArg(options::OPT_ccc_print_bindings);
-  CCCEcho = Args->hasArg(options::OPT_ccc_echo);
   if (const Arg *A = Args->getLastArg(options::OPT_ccc_gcc_name))
     CCCGenericGCCName = A->getValue();
   CCCUsePCH = Args->hasFlag(options::OPT_ccc_pch_is_pch,
index d9a16cbfb4605789a0b38f5cec13afe002cece35..171bfd285484de1eb22953e74f6cb049eca68349 100644 (file)
@@ -1,5 +1,4 @@
-// RUN: env CCC_ADD_ARGS="-ccc-echo,-ccc-print-options,,-v" %clang -### 2>&1 | FileCheck %s
-// CHECK: Option 0 - Name: "-ccc-echo", Values: {}
-// CHECK: Option 1 - Name: "-ccc-print-options", Values: {}
-// CHECK: Option 2 - Name: "-v", Values: {}
-// CHECK: Option 3 - Name: "-###", Values: {}
+// RUN: env CCC_ADD_ARGS="-ccc-print-options,,-v" %clang -### 2>&1 | FileCheck %s
+// CHECK: Option 0 - Name: "-ccc-print-options", Values: {}
+// CHECK: Option 1 - Name: "-v", Values: {}
+// CHECK: Option 2 - Name: "-###", Values: {}