forked from OSchip/llvm-project
Remove the -ccc-echo option that is now unused.
llvm-svn: 186970
This commit is contained in:
parent
555575c32b
commit
8c4245455a
|
@ -129,9 +129,6 @@ public:
|
||||||
/// Whether the driver is just the preprocessor.
|
/// Whether the driver is just the preprocessor.
|
||||||
bool CCCIsCPP() const { return Mode == CPPMode; }
|
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.
|
/// Only print tool bindings, don't build any jobs.
|
||||||
unsigned CCCPrintBindings : 1;
|
unsigned CCCPrintBindings : 1;
|
||||||
|
|
||||||
|
|
|
@ -114,8 +114,6 @@ def ccc_debug_Group : OptionGroup<"<clang debug/development internal options>">,
|
||||||
class CCCDriverOpt : Group<ccc_driver_Group>, Flags<[DriverOption, HelpHidden]>;
|
class CCCDriverOpt : Group<ccc_driver_Group>, Flags<[DriverOption, HelpHidden]>;
|
||||||
def driver_mode : Joined<["--"], "driver-mode=">, CCCDriverOpt,
|
def driver_mode : Joined<["--"], "driver-mode=">, CCCDriverOpt,
|
||||||
HelpText<"Set the driver mode to either 'gcc', 'g++' or 'cpp'">;
|
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,
|
def ccc_gcc_name : Separate<["-"], "ccc-gcc-name">, CCCDriverOpt,
|
||||||
HelpText<"Name for native GCC compiler">,
|
HelpText<"Name for native GCC compiler">,
|
||||||
MetaVarName<"<gcc-path>">;
|
MetaVarName<"<gcc-path>">;
|
||||||
|
|
|
@ -266,7 +266,7 @@ int Compilation::ExecuteCommand(const Command &C,
|
||||||
std::copy(C.getArguments().begin(), C.getArguments().end(), Argv+1);
|
std::copy(C.getArguments().begin(), C.getArguments().end(), Argv+1);
|
||||||
Argv[C.getArguments().size() + 1] = 0;
|
Argv[C.getArguments().size() + 1] = 0;
|
||||||
|
|
||||||
if ((getDriver().CCCEcho || getDriver().CCPrintOptions ||
|
if ((getDriver().CCPrintOptions ||
|
||||||
getArgs().hasArg(options::OPT_v)) && !getDriver().CCGenDiagnostics) {
|
getArgs().hasArg(options::OPT_v)) && !getDriver().CCGenDiagnostics) {
|
||||||
raw_ostream *OS = &llvm::errs();
|
raw_ostream *OS = &llvm::errs();
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ Driver::Driver(StringRef ClangExecutable,
|
||||||
DriverTitle("clang LLVM compiler"),
|
DriverTitle("clang LLVM compiler"),
|
||||||
CCPrintOptionsFilename(0), CCPrintHeadersFilename(0),
|
CCPrintOptionsFilename(0), CCPrintHeadersFilename(0),
|
||||||
CCLogDiagnosticsFilename(0),
|
CCLogDiagnosticsFilename(0),
|
||||||
CCCEcho(false), CCCPrintBindings(false),
|
CCCPrintBindings(false),
|
||||||
CCPrintOptions(false), CCPrintHeaders(false), CCLogDiagnostics(false),
|
CCPrintOptions(false), CCPrintHeaders(false), CCLogDiagnostics(false),
|
||||||
CCGenDiagnostics(false), CCCGenericGCCName(""), CheckInputsExist(true),
|
CCGenDiagnostics(false), CCCGenericGCCName(""), CheckInputsExist(true),
|
||||||
CCCUsePCH(true), SuppressMissingInputWarning(false) {
|
CCCUsePCH(true), SuppressMissingInputWarning(false) {
|
||||||
|
@ -300,7 +300,6 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
|
||||||
CCCPrintOptions = Args->hasArg(options::OPT_ccc_print_options);
|
CCCPrintOptions = Args->hasArg(options::OPT_ccc_print_options);
|
||||||
CCCPrintActions = Args->hasArg(options::OPT_ccc_print_phases);
|
CCCPrintActions = Args->hasArg(options::OPT_ccc_print_phases);
|
||||||
CCCPrintBindings = Args->hasArg(options::OPT_ccc_print_bindings);
|
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))
|
if (const Arg *A = Args->getLastArg(options::OPT_ccc_gcc_name))
|
||||||
CCCGenericGCCName = A->getValue();
|
CCCGenericGCCName = A->getValue();
|
||||||
CCCUsePCH = Args->hasFlag(options::OPT_ccc_pch_is_pch,
|
CCCUsePCH = Args->hasFlag(options::OPT_ccc_pch_is_pch,
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// RUN: env CCC_ADD_ARGS="-ccc-echo,-ccc-print-options,,-v" %clang -### 2>&1 | FileCheck %s
|
// RUN: env CCC_ADD_ARGS="-ccc-print-options,,-v" %clang -### 2>&1 | FileCheck %s
|
||||||
// CHECK: Option 0 - Name: "-ccc-echo", Values: {}
|
// CHECK: Option 0 - Name: "-ccc-print-options", Values: {}
|
||||||
// CHECK: Option 1 - Name: "-ccc-print-options", Values: {}
|
// CHECK: Option 1 - Name: "-v", Values: {}
|
||||||
// CHECK: Option 2 - Name: "-v", Values: {}
|
// CHECK: Option 2 - Name: "-###", Values: {}
|
||||||
// CHECK: Option 3 - Name: "-###", Values: {}
|
|
||||||
|
|
Loading…
Reference in New Issue