[PATCH] D152778: [LoongArch] Ignore warnings when there are no environment in triple
hev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 12 23:21:58 PDT 2023
hev created this revision.
hev added reviewers: SixWeining, xen0n.
hev added a project: LLVM.
Herald added subscribers: JDevlieghere, hiraditya.
Herald added a project: All.
hev requested review of this revision.
Herald added a subscriber: llvm-commits.
In Rust bare-metal targets, there are no environment component in triple name. This patch ignores warnings that look like:
warning: triple-implied ABI conflicts with provided target-abi ‘lp64s', using target-abi
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152778
Files:
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchBaseInfo.cpp
Index: llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchBaseInfo.cpp
===================================================================
--- llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchBaseInfo.cpp
+++ llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchBaseInfo.cpp
@@ -73,7 +73,7 @@
break;
}
- if (!ABIName.empty() && ArgProvidedABI != TripleABI)
+ if (!ABIName.empty() && TT.hasEnvironment() && ArgProvidedABI != TripleABI)
errs() << "warning: triple-implied ABI conflicts with provided target-abi '"
<< ABIName << "', using target-abi\n";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152778.530785.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230613/1fc050bf/attachment.bin>
More information about the llvm-commits
mailing list