mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
DriverTool,IRGen: Address llvm::Target::createTargetMachine overload deprecation
See https://github.com/llvm/llvm-project/pull/130940.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user