[PATCH] D42720: [CodeGen] Switch non-SJLJ EH encoding to uleb128

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 5 17:12:26 PST 2018


Ryan Prichard via Phabricator via llvm-commits
<llvm-commits at lists.llvm.org> writes:

> rprichard created this revision.
> Herald added subscribers: llvm-commits, JDevlieghere, javed.absar, aprantl.
>
> With this commit, LLVM emits a DWARF EH table using GCC-style assembly by
> default. Offsets in the EH table (code offsets in the call site table,
> the call site table size, and the offset to TTBase) are calculated in the
> assembler rather than in the compiler. Doing so allows switching the
> encoding of code offsets in the call site table from udata4 to uleb128,
> which can reduce the size of the EH table by half.
>
> This behavior is on by default. The old behavior can be restored with
> -mllvm -layout-eh-table-in-assembler=0.

Do we really need to keep the old behavior around? What depends on it?

Cheers,
Rafael


More information about the llvm-commits mailing list