[PATCH] D31140: [LLVMbugs] [Bug 18710] Only generate .ARM.exidx and .ARM.extab when needed in EHABI

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 8 14:13:36 PDT 2017


efriedma added a comment.

Oh, you don't want to emit them by default. :)

I'm not sure what you're trying to do here... there are three possibilities:

1. The function could have an exception thrown through it, so we need an unwind table.
2. The function can't have an exception thrown through it, and we don't need an unwind table.
3. The function can't have an exception thrown through it, but we need an unwind table anyway for ABI reasons.

We don't really care whether "uwtable" is set in the first scenario; it's obvious we need the table anyway.  So I'm not sure what you're trying to accomplish here.  (This is why I suggested using needsUnwindTableEntry() on the LLVM patch.)


https://reviews.llvm.org/D31140





More information about the cfe-commits mailing list