Skip to content

Commit 1a6912b

Browse files
authored
[lldb][RISC-V] Extended if conditions to support alias names for registers (#124475)
Extending the conditionals in `AugmentRegisterInfo` to support alternative names for lldb. Fixes #124023 There is an exception with register `X8` which is not covered here but more details can be found in the issue llvm/llvm-project#127900.
1 parent 7e0bac5 commit 1a6912b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lit/llvm/config.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,12 @@ def __init__(self, lit_config, config):
169169
features.add("target-aarch64")
170170
elif re.match(r"^arm.*", target_triple):
171171
features.add("target-arm")
172-
if re.match(r'^ppc64le.*-linux', target_triple):
173-
features.add('target=powerpc64le-linux')
172+
elif re.match(r"^ppc64le.*-linux", target_triple):
173+
features.add("target=powerpc64le-linux")
174+
elif re.match(r"^riscv64-.*-elf", target_triple):
175+
features.add("target-riscv64")
176+
elif re.match(r"^riscv32-.*-elf.", target_triple):
177+
features.add("target-riscv32")
174178

175179
if not user_is_root():
176180
features.add("non-root-user")

0 commit comments

Comments
 (0)