DriverTool,IRGen: Address llvm::Target::createTargetMachine overload deprecation

See https://github.com/llvm/llvm-project/pull/130940.
This commit is contained in:
Anthony Latsis
2025-07-21 12:14:27 +01:00
parent db58043b40
commit b66a1aa8c5
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ getTargetMachine(llvm::Triple TheTriple, StringRef CPUStr,
}
return TheTarget->createTargetMachine(
TheTriple.getTriple(), CPUStr, FeaturesStr, targetOptions,
TheTriple, CPUStr, FeaturesStr, targetOptions,
std::optional<llvm::Reloc::Model>(llvm::codegen::getExplicitRelocModel()),
llvm::codegen::getExplicitCodeModel(), GetCodeGenOptLevel(options));
}