mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
DriverTool, IRGen: Adjust uses of llvm::Module::setTargetTriple (parameter type changed)
Per 979c275097a642e9b96c6b0a12f013c831af3a6e (llvm-project).
This commit is contained in:
@@ -174,7 +174,8 @@ int swift_llvm_opt_main(ArrayRef<const char *> argv, void *MainAddr) {
|
||||
|
||||
// If we are supposed to override the target triple, do so now.
|
||||
if (!options.TargetTriple.empty())
|
||||
M->setTargetTriple(llvm::Triple::normalize(options.TargetTriple));
|
||||
M->setTargetTriple(
|
||||
llvm::Triple(llvm::Triple::normalize(options.TargetTriple)));
|
||||
|
||||
// Figure out what stream we are supposed to write to...
|
||||
std::unique_ptr<llvm::ToolOutputFile> Out;
|
||||
|
||||
Reference in New Issue
Block a user