summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/MCTargetDesc
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-01-24 00:30:17 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-01-24 00:30:17 +0000
commited975232bc929251dd1aeda5d609aa40b0372f5f (patch)
treeaa0eed30178b9f727215f39fb905d10fd2dd32b4 /llvm/lib/Target/ARM/MCTargetDesc
parent17bacab4757a205adb2f28a4f24ee315071a1735 (diff)
downloadbcm5719-llvm-ed975232bc929251dd1aeda5d609aa40b0372f5f.tar.gz
bcm5719-llvm-ed975232bc929251dd1aeda5d609aa40b0372f5f.zip
Revert r148686 (and r148694, a fix to it) due to a serious layering
violation -- MC cannot depend on CodeGen. Specifically, the MCTargetDesc component of each target is actually a subcomponent of the MC library. As such, it cannot depend on the target-independent code generator, because MC itself cannot depend on the target-independent code generator. This change moved a flag from the ARM MCTargetDesc file ARMMCAsmInfo.cpp to the CodeGen layer in ARMException.cpp, leaving behind an 'extern' to refer back to it. That layering order isn't viable givin the constraints outlined above. Commandline flags are designed to be static specifically to avoid these types of bugs. Fixing this is likely going to require some non-trivial refactoring. llvm-svn: 148759
Diffstat (limited to 'llvm/lib/Target/ARM/MCTargetDesc')
-rw-r--r--llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
index db21defb7c9..d1804a2e45b 100644
--- a/llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
+++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
@@ -16,7 +16,10 @@
using namespace llvm;
-extern cl::opt<ExceptionHandling::ARMEHABIMode> EnableARMEHABI;
+cl::opt<bool>
+EnableARMEHABI("arm-enable-ehabi", cl::Hidden,
+ cl::desc("Generate ARM EHABI tables"),
+ cl::init(false));
static const char *const arm_asm_table[] = {
@@ -79,6 +82,6 @@ ARMELFMCAsmInfo::ARMELFMCAsmInfo() {
SupportsDebugInformation = true;
// Exceptions handling
- if (EnableARMEHABI != ExceptionHandling::ARMEHABIDisabled)
+ if (EnableARMEHABI)
ExceptionsType = ExceptionHandling::ARM;
}
OpenPOWER on IntegriCloud