[RISCV] Set correct encodings for DWARF exception handling
authorAlex Bradbury <asb@lowrisc.org>
Wed, 17 Jul 2019 13:54:38 +0000 (13:54 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Wed, 17 Jul 2019 13:54:38 +0000 (13:54 +0000)
commitb94c233d06731b09d842ed86c5a72c44b40c65bb
tree1e1c183d84a65bfbd8186706605d8d84e4a00e38
parentaa55124eca680e164956c9654a8f2a2fc60b1146
[RISCV] Set correct encodings for DWARF exception handling

This patch sets correct encodings for DWARF exception handling for RISC-V
(other than call site encoding, which must be udata4 rather than uleb128 and
is handled by D63415).

This has the same intend as D63409, except this version matches GCC/binutils
behaviour which uses the same encodings regardless of PIC/non-PIC and
medlow/medany code model.

llvm-svn: 366327
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/test/CodeGen/RISCV/dwarf-eh.ll