[PATCH] Propagate -fno-unwind-tables to EHABI

Renato Golin renato.golin at linaro.org
Fri Mar 14 15:25:25 PDT 2014



================
Comment at: lib/CodeGen/AsmPrinter/ARMException.cpp:89
@@ -80,3 +88,3 @@
   ARMTargetStreamer &ATS = getTargetStreamer();
-  if (!Asm->MF->getFunction()->needsUnwindTableEntry())
+  if (Asm->MF->getFunction()->doesNotThrow())
     ATS.emitCantUnwind();
----------------
Anton Korobeynikov wrote:
> Does needsUnwindTableEntry() and doesNotThrow() do the same?
No. nUTE() is (uwtable || !noThrow). In the new code, uwtable is already covered by shouldEmitEH, and !noThrow is covered by the else below.

I'm basically expanding the knowledge to print the right things at the right times and interoperate nicely with Dwarf CFI unwinding.


http://llvm-reviews.chandlerc.com/D3079



More information about the llvm-commits mailing list