]> granicus.if.org Git - llvm/commit
CodeGen: avoid emitting unnecessary CFI
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 15 Jul 2016 21:10:29 +0000 (21:10 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 15 Jul 2016 21:10:29 +0000 (21:10 +0000)
commit1083a5297a60aabaa949d42483d89355cfaf3219
treee9690d7ff7cb76eca808a336ca93c55ab322f4cf
parentbf4114e90b9f50a5b7d6b5b54002e7e70f13d3c9
CodeGen: avoid emitting unnecessary CFI

Remove unnecessary clutter in assembly output.  When using SjLj EH, the CFI is
not actually used for anything.  Do not emit the CFI needlessly.  The minor test
adjustments are interesting.  The prologue test was just overzealous matcching.
The interesting case is the LSDA change.  It was originally added to ensure that
various compilations did not mangle the name (it explicitly checked the name!).
However, subsequent cleanups made it more reliant on the CFI to find the name.
Parse the generated code flow to generically find the label still.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275614 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
test/CodeGen/ARM/2009-08-31-LSDA-Name.ll
test/DebugInfo/ARM/prologue_end.ll