[PATCH] D73739: Exception support for basic block sections

Rahman Lavaee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 4 13:58:35 PDT 2020


rahmanl updated this revision to Diff 283023.
rahmanl added a subscriber: amharc.
rahmanl added a comment.

Fix exception handling on PIC targets (Credit to @amharc for implementing the fix).

The idea is to use pc-relative encoding for LPStart in PIC mode, as absptr is
not possible.
The existing tests are updated to exercise the PIC mode.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73739/new/

https://reviews.llvm.org/D73739

Files:
  llvm/include/llvm/CodeGen/AsmPrinter.h
  llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
  llvm/lib/CodeGen/AsmPrinter/EHStreamer.cpp
  llvm/lib/CodeGen/AsmPrinter/EHStreamer.h
  llvm/lib/CodeGen/AsmPrinter/WasmException.cpp
  llvm/lib/CodeGen/AsmPrinter/WasmException.h
  llvm/test/CodeGen/X86/gcc_except_table_bb_sections.ll
  llvm/test/CodeGen/X86/gcc_except_table_bb_sections_ehpad_groups_with_cold.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73739.283023.patch
Type: text/x-patch
Size: 35158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200804/6112ce2c/attachment.bin>


More information about the llvm-commits mailing list