<div class="gmail_quote">On Sun, Jan 22, 2012 at 11:57 PM, Evgeniy Stepanov <span dir="ltr"><<a href="mailto:eugeni.stepanov@gmail.com">eugeni.stepanov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: eugenis<br>
Date: Mon Jan 23 01:57:39 2012<br>
New Revision: 148686<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=148686&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=148686&view=rev</a><br>
Log:<br>
An option to selectively enable parts of ARM EHABI support.<br>
<br>
This change adds an new value to the --arm-enable-ehabi option that<br>
disables emitting unwinding descriptors. This mode gives a working<br>
backtrace() without the (currently broken) exception support.<br></blockquote><div><br></div><div>I've had to revert this in r148759. It violates a very important layering constraint: the MC library (of which every target's MCTargetDesc sub-component is a part) must not depend on the CodeGen library. Moving this flag into CodeGen doesn't work. See my description for more details.</div>
<div><br></div><div>Frankly, I think you stumbled on a much bigger layering problem: if ARMException.cpp (and related utilities in lib/CodeGen/AsmPrinter) are needed by various parts of the MC library, they should all be moved down into the MC library. That's the library resposible for asm printing these days. I've looped in the MC experts on this thread to provide more insights.</div>
<div><br></div><div>-Chandler</div></div>