diff options
author | Nikita Popov <npopov@redhat.com> | 2025-03-12 17:35:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-12 17:35:09 +0100 |
commit | f137c3d592e96330e450a8fd63ef7e8877fc1908 (patch) | |
tree | 458344fadf0c64d777a03d2f326597b8c1282cb9 /llvm/lib/LTO/LTOBackend.cpp | |
parent | 71582c6667a6334c688734cae628e906b3c1ac1d (diff) | |
download | llvm-f137c3d592e96330e450a8fd63ef7e8877fc1908.zip llvm-f137c3d592e96330e450a8fd63ef7e8877fc1908.tar.gz llvm-f137c3d592e96330e450a8fd63ef7e8877fc1908.tar.bz2 |
[TargetRegistry] Accept Triple in createTargetMachine() (NFC) (#130940)
This avoids doing a Triple -> std::string -> Triple round trip in lots
of places, now that the Module stores a Triple.
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
-rw-r--r-- | llvm/lib/LTO/LTOBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp index 139c39a..1c764a0 100644 --- a/llvm/lib/LTO/LTOBackend.cpp +++ b/llvm/lib/LTO/LTOBackend.cpp @@ -227,7 +227,7 @@ createTargetMachine(const Config &Conf, const Target *TheTarget, Module &M) { } std::unique_ptr<TargetMachine> TM(TheTarget->createTargetMachine( - TheTriple.str(), Conf.CPU, Features.getString(), TargetOpts, RelocModel, + TheTriple, Conf.CPU, Features.getString(), TargetOpts, RelocModel, CodeModel, Conf.CGOptLevel)); assert(TM && "Failed to create target machine"); |