[llvm] e09fc39 - [llvm] Make target triple in TLII const reference (#127718)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 20 02:06:39 PST 2025
Author: David
Date: 2025-02-20T11:06:35+01:00
New Revision: e09fc394b7c4606099b3466bb076a19327b9e16b
URL: https://github.com/llvm/llvm-project/commit/e09fc394b7c4606099b3466bb076a19327b9e16b
DIFF: https://github.com/llvm/llvm-project/commit/e09fc394b7c4606099b3466bb076a19327b9e16b.diff
LOG: [llvm] Make target triple in TLII const reference (#127718)
Added:
Modified:
llvm/include/llvm/Frontend/Driver/CodeGenOptions.h
llvm/lib/Frontend/Driver/CodeGenOptions.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Frontend/Driver/CodeGenOptions.h b/llvm/include/llvm/Frontend/Driver/CodeGenOptions.h
index 0180670c4c699..c51476e9ad3fe 100644
--- a/llvm/include/llvm/Frontend/Driver/CodeGenOptions.h
+++ b/llvm/include/llvm/Frontend/Driver/CodeGenOptions.h
@@ -33,7 +33,7 @@ enum class VectorLibrary {
AMDLIBM // AMD vector math library.
};
-TargetLibraryInfoImpl *createTLII(llvm::Triple &TargetTriple,
+TargetLibraryInfoImpl *createTLII(const llvm::Triple &TargetTriple,
VectorLibrary Veclib);
} // end namespace llvm::driver
diff --git a/llvm/lib/Frontend/Driver/CodeGenOptions.cpp b/llvm/lib/Frontend/Driver/CodeGenOptions.cpp
index 2d74a91f62dc0..ed7c57a930aca 100644
--- a/llvm/lib/Frontend/Driver/CodeGenOptions.cpp
+++ b/llvm/lib/Frontend/Driver/CodeGenOptions.cpp
@@ -12,7 +12,7 @@
namespace llvm::driver {
-TargetLibraryInfoImpl *createTLII(llvm::Triple &TargetTriple,
+TargetLibraryInfoImpl *createTLII(const llvm::Triple &TargetTriple,
driver::VectorLibrary Veclib) {
TargetLibraryInfoImpl *TLII = new TargetLibraryInfoImpl(TargetTriple);
More information about the llvm-commits
mailing list