aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Archive.cpp
diff options
context:
space:
mode:
authorSirraide <aeternalmail@gmail.com>2024-10-01 21:16:11 +0200
committerGitHub <noreply@github.com>2024-10-01 21:16:11 +0200
commit9c2843275e8bce09837767c0e453a68bc164116c (patch)
treea7d2579aa573866619366fbfa8720dc355ee6213 /llvm/lib/Object/Archive.cpp
parent916c83020967d72a5870b4b3d058998f367acd1a (diff)
downloadllvm-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.cpp2
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())