diff options
author | Djordje Todorovic <djordje.todorovic@htecgroup.com> | 2025-08-28 17:04:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-28 17:04:47 +0200 |
commit | 9a99896387eaa406529ee574762fc7988348d6fe (patch) | |
tree | 2adfcc0ac23cc670d4c430892647584af4f85634 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | a317d64f885f0d93ccd4208a34c3b7ac5bccf47f (diff) | |
download | llvm-9a99896387eaa406529ee574762fc7988348d6fe.zip llvm-9a99896387eaa406529ee574762fc7988348d6fe.tar.gz llvm-9a99896387eaa406529ee574762fc7988348d6fe.tar.bz2 |
[TargetLoweringObjectFile] Handle riscv BE (#155166)
Add DWARF exception handling support for riscv big-endian targets.
More CodeGen changes related to riscvbe are coming.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index d19ef92..739dcc7f 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -247,6 +247,8 @@ void TargetLoweringObjectFileELF::Initialize(MCContext &Ctx, break; case Triple::riscv32: case Triple::riscv64: + case Triple::riscv32be: + case Triple::riscv64be: LSDAEncoding = dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4; PersonalityEncoding = dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4; |