Revert r148686 (and r148694, a fix to it) due to a serious layering
authorChandler Carruth <chandlerc@gmail.com>
Tue, 24 Jan 2012 00:30:17 +0000 (00:30 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 24 Jan 2012 00:30:17 +0000 (00:30 +0000)
commit3eb4be0ace6263f35a2f3aae9e964a752ebe55af
treec2667c6c34a836e960dec7e6660fdc4cdb1e6b5e
parent7b426cee22a3cac030ec7ace0be04ee8569f18c7
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148759 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAsmInfo.h
lib/CodeGen/AsmPrinter/ARMException.cpp
lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
test/CodeGen/ARM/ehabi-unwind.ll