aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2013-07-10 10:27:32 -0700
committerAndrew Hsieh <andrewhsieh@google.com>2013-07-10 10:27:32 -0700
commit9bc8eff68bd684c21ec036645f56baeb31506ea7 (patch)
tree5dc35166c7fddda0a5805d1174f2e634410c833d
parent7506b7ae82bf68acae0263ed829de34e778391aa (diff)
downloadllvm-release_31.tar.gz
Allow multiple -arm-enable-ehabi and -arm-enable-ehabi-descriptorsrelease_31
Clang adds -arm-enable-ehabi and -arm-enable-ehabi-descriptors unconditionally for Android. This may fail when user also specify "-mllvm -arm-enable-ehabi" or "-mllvm -arm-enable-ehabi-descriptors" in the command line. Fix to allow multiple occurrences. Change-Id: I3860b22abdd8481ebb3068d5d3156436e27c7a57
-rw-r--r--lib/CodeGen/AsmPrinter/ARMException.cpp1
-rw-r--r--lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/ARMException.cpp b/lib/CodeGen/AsmPrinter/ARMException.cpp
index 9d2ed73a28c..f6c9c2f0e3d 100644
--- a/lib/CodeGen/AsmPrinter/ARMException.cpp
+++ b/lib/CodeGen/AsmPrinter/ARMException.cpp
@@ -39,6 +39,7 @@ using namespace llvm;
cl::opt<bool>
EnableARMEHABIDescriptors("arm-enable-ehabi-descriptors", cl::Hidden,
+ cl::ZeroOrMore,
cl::desc("Generate ARM EHABI tables with unwinding descriptors"),
cl::init(false));
diff --git a/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp b/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
index 03e8d5f83ae..b387c2ace0b 100644
--- a/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
+++ b/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
@@ -18,6 +18,7 @@ using namespace llvm;
cl::opt<bool>
EnableARMEHABI("arm-enable-ehabi", cl::Hidden,
+ cl::ZeroOrMore,
cl::desc("Generate ARM EHABI tables"),
cl::init(false));