diff options
author | mintsuki <36459316+mintsuki@users.noreply.github.com> | 2025-07-22 06:13:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-22 12:13:37 +0800 |
commit | 9ed8816dc63776259d2190bdc8a7a29698c62749 (patch) | |
tree | 9038879cfdfa0e5daa6dc5b33664557b0f1f7104 /llvm/lib/Object/ModuleSymbolTable.cpp | |
parent | 4d48996ff05305d4a5774f3e232c2ee4a06c3d2a (diff) | |
download | llvm-9ed8816dc63776259d2190bdc8a7a29698c62749.zip llvm-9ed8816dc63776259d2190bdc8a7a29698c62749.tar.gz llvm-9ed8816dc63776259d2190bdc8a7a29698c62749.tar.bz2 |
LoongArch: Improve detection of valid TripleABI (#147952)
If the environment is considered to be the triple component as a whole,
so, including the object format, if any, and if that is the intended
behaviour, then the loongarch64 function `computeTargetABI()` should be
changed to not rely on `hasEnvironment()`, but, rather, to check if
there is a non-unknown environment set.
Without this change, using a (ideally valid) target of
loongarch64-unknown-none-elf, with a manually specified ABI of lp64s,
will result in a completely superfluous warning:
```
warning: triple-implied ABI conflicts with provided target-abi 'lp64s', using target-abi
```
Diffstat (limited to 'llvm/lib/Object/ModuleSymbolTable.cpp')
0 files changed, 0 insertions, 0 deletions