[LoongArch] Specify registers used in DWARF exception handling
authorwanglei <wanglei@loongson.cn>
Wed, 28 Sep 2022 09:31:44 +0000 (17:31 +0800)
committerWeining Lu <luweining@loongson.cn>
Wed, 28 Sep 2022 09:53:16 +0000 (17:53 +0800)
commit983a0ae5cfbcd586e23b2a0c93d6ab790305a728
treec30fc9839b0acc29f83b5281d6ffe7fd45c1e8f9
parentc1e27d29892829808f7b789a6f745b7c4aa4133f
[LoongArch] Specify registers used in DWARF exception handling

Defines LoongArch registers for getExceptionPointerRegister() and
getExceptionSelectorRegister().

Differential Revision: https://reviews.llvm.org/D134709
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
llvm/lib/Target/LoongArch/LoongArchISelLowering.h
llvm/test/CodeGen/LoongArch/exception-pointer-register.ll [new file with mode: 0644]