[lld] [llvm] [LTO] Override TargetABI from module flags if present when creating TargetMachine (PR #126497)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 6 19:51:59 PST 2025
================
@@ -221,8 +221,17 @@ createTargetMachine(const Config &Conf, const Target *TheTarget, Module &M) {
else
CodeModel = M.getCodeModel();
+ TargetOptions TargetOpts = Conf.Options;
+
+ if (TargetOpts.MCOptions.ABIName.empty()) {
+ StringRef ModABI = M.getTargetABIFromMD();
+ if (!ModABI.empty()) {
+ TargetOpts.MCOptions.ABIName = ModABI;
+ }
----------------
arichardson wrote:
Does not seem to be resolved?
https://github.com/llvm/llvm-project/pull/126497
More information about the llvm-commits
mailing list