diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-12-17 07:49:16 +0000 |
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-12-17 07:49:16 +0000 |
| commit | 1fe2678a06651a8544a987b473fc6c9aa47f8681 (patch) | |
| tree | 614416beaaefb0b547f7a9d94c8d7fa16b33e732 /llvm/tools/llvmc/plugins | |
| parent | 9bbd4eb9f5f7085fe1d6e6d0ded7b32206bbd9cd (diff) | |
| download | bcm5719-llvm-1fe2678a06651a8544a987b473fc6c9aa47f8681.tar.gz bcm5719-llvm-1fe2678a06651a8544a987b473fc6c9aa47f8681.zip | |
Add a 'set_option' action for use in OptionPreprocessor.
llvm-svn: 91594
Diffstat (limited to 'llvm/tools/llvmc/plugins')
| -rw-r--r-- | llvm/tools/llvmc/plugins/Base/Base.td.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvmc/plugins/Base/Base.td.in b/llvm/tools/llvmc/plugins/Base/Base.td.in index 8f928cc40cb..1413593bdfe 100644 --- a/llvm/tools/llvmc/plugins/Base/Base.td.in +++ b/llvm/tools/llvmc/plugins/Base/Base.td.in @@ -91,7 +91,9 @@ def OptList : OptionList<[ // Option preprocessor. def Preprocess : OptionPreprocessor< -(case (and (switch_on "O3"), (any_switch_on ["O0", "O1", "O2"])), +(case (not (any_switch_on ["O0", "O1", "O2", "O3"])), + (set_option "O2"), + (and (switch_on "O3"), (any_switch_on ["O0", "O1", "O2"])), (unset_option ["O0", "O1", "O2"]), (and (switch_on "O2"), (any_switch_on ["O0", "O1"])), (unset_option ["O0", "O1"]), |

