diff options
author | Sirraide <aeternalmail@gmail.com> | 2024-10-01 21:16:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-01 21:16:11 +0200 |
commit | 9c2843275e8bce09837767c0e453a68bc164116c (patch) | |
tree | a7d2579aa573866619366fbfa8720dc355ee6213 /llvm/lib/Object/Archive.cpp | |
parent | 916c83020967d72a5870b4b3d058998f367acd1a (diff) | |
download | llvm-9c2843275e8bce09837767c0e453a68bc164116c.zip llvm-9c2843275e8bce09837767c0e453a68bc164116c.tar.gz llvm-9c2843275e8bce09837767c0e453a68bc164116c.tar.bz2 |
[NFC] Make 'Triple&' param a 'const&' instead (#110628)
There isn’t really a reason for it not to be a `const&` (afaict), and it
is a bit annoying because some APIs (e.g. `TargetMachine::getTargetTriple()`)
return a `const Triple&`.
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
-rw-r--r-- | llvm/lib/Object/Archive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp index e798bbd..9857eb0 100644 --- a/llvm/lib/Object/Archive.cpp +++ b/llvm/lib/Object/Archive.cpp @@ -969,7 +969,7 @@ Archive::Archive(MemoryBufferRef Source, Error &Err) Err = Error::success(); } -object::Archive::Kind Archive::getDefaultKindForTriple(Triple &T) { +object::Archive::Kind Archive::getDefaultKindForTriple(const Triple &T) { if (T.isOSDarwin()) return object::Archive::K_DARWIN; if (T.isOSAIX()) |