forked from OSchip/llvm-project
parent
554c054777
commit
8711c8dbcf
|
@ -97,11 +97,10 @@ def Preprocess : OptionPreprocessor<
|
||||||
(unset_option ["O0", "O1", "O2"]),
|
(unset_option ["O0", "O1", "O2"]),
|
||||||
(and (switch_on "O2"), (any_switch_on ["O0", "O1"])),
|
(and (switch_on "O2"), (any_switch_on ["O0", "O1"])),
|
||||||
(unset_option ["O0", "O1"]),
|
(unset_option ["O0", "O1"]),
|
||||||
(and (switch_on "O1"), (switch_on "O0")),
|
(switch_on ["O1", "O0"]),
|
||||||
(unset_option "O0"))
|
(unset_option "O0"))
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
|
||||||
// Tools
|
// Tools
|
||||||
|
|
||||||
class llvm_gcc_based <string cmd_prefix, string in_lang, string E_ext> : Tool<
|
class llvm_gcc_based <string cmd_prefix, string in_lang, string E_ext> : Tool<
|
||||||
|
|
|
@ -1240,7 +1240,7 @@ bool EmitCaseTest1ArgList(const std::string& TestName,
|
||||||
const DagInit& d,
|
const DagInit& d,
|
||||||
const OptionDescriptions& OptDescs,
|
const OptionDescriptions& OptDescs,
|
||||||
raw_ostream& O) {
|
raw_ostream& O) {
|
||||||
const ListInit& L = *static_cast<ListInit*>(d.getArg(0));
|
const ListInit& L = InitPtrToList(d.getArg(0));
|
||||||
|
|
||||||
if (TestName == "any_switch_on") {
|
if (TestName == "any_switch_on") {
|
||||||
EmitListTest(L, "||", EmitSwitchOn(OptDescs), O);
|
EmitListTest(L, "||", EmitSwitchOn(OptDescs), O);
|
||||||
|
|
Loading…
Reference in New Issue