[llvm] 4026b26 - [RISCV] Use StringRef instead of string_view in RISCVISAInfo. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 23:05:57 PDT 2024
Author: Craig Topper
Date: 2024-06-26T23:05:51-07:00
New Revision: 4026b263429a85df5c6e98a3d8c06e606ea55681
URL: https://github.com/llvm/llvm-project/commit/4026b263429a85df5c6e98a3d8c06e606ea55681
DIFF: https://github.com/llvm/llvm-project/commit/4026b263429a85df5c6e98a3d8c06e606ea55681.diff
LOG: [RISCV] Use StringRef instead of string_view in RISCVISAInfo. NFC
This is the only use of string_view in the file. Switch to StringRef
for consistency.
Added:
Modified:
llvm/lib/TargetParser/RISCVISAInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/TargetParser/RISCVISAInfo.cpp b/llvm/lib/TargetParser/RISCVISAInfo.cpp
index 35bfc31c79c0e..739a36477c287 100644
--- a/llvm/lib/TargetParser/RISCVISAInfo.cpp
+++ b/llvm/lib/TargetParser/RISCVISAInfo.cpp
@@ -287,7 +287,7 @@ std::vector<std::string> RISCVISAInfo::toFeatures(bool AddAllExtensions,
return Features;
}
-static Error getStringErrorForInvalidExt(std::string_view ExtName) {
+static Error getStringErrorForInvalidExt(StringRef ExtName) {
if (ExtName.size() == 1) {
return createStringError(errc::invalid_argument,
"unsupported standard user-level extension '" +
More information about the llvm-commits
mailing list