[lld] [llvm] [LTO] Override TargetABI from module flags if present when creating T… (PR #126497)
Kito Cheng via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 12 00:53:20 PST 2025
================
@@ -221,8 +221,18 @@ createTargetMachine(const Config &Conf, const Target *TheTarget, Module &M) {
else
CodeModel = M.getCodeModel();
+ TargetOptions TargetOpts = Conf.Options;
+
+ if (TargetOpts.MCOptions.ABIName.empty()) {
+ Metadata *ABI = M.getModuleFlag("target-abi");
----------------
kito-cheng wrote:
#100833 seems need few more days, will rebase and use that once that patch landed.
https://github.com/llvm/llvm-project/pull/126497
More information about the llvm-commits
mailing list