aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/ObjCopy/wasm/WasmObjcopy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/llvm/lib/ObjCopy/wasm/WasmObjcopy.cpp')
-rw-r--r--contrib/llvm-project/llvm/lib/ObjCopy/wasm/WasmObjcopy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/ObjCopy/wasm/WasmObjcopy.cpp b/contrib/llvm-project/llvm/lib/ObjCopy/wasm/WasmObjcopy.cpp
index e5af59f93280..5bba1dea9adf 100644
--- a/contrib/llvm-project/llvm/lib/ObjCopy/wasm/WasmObjcopy.cpp
+++ b/contrib/llvm-project/llvm/lib/ObjCopy/wasm/WasmObjcopy.cpp
@@ -22,11 +22,11 @@ using namespace object;
using SectionPred = std::function<bool(const Section &Sec)>;
static bool isDebugSection(const Section &Sec) {
- return Sec.Name.startswith(".debug");
+ return Sec.Name.starts_with(".debug");
}
static bool isLinkerSection(const Section &Sec) {
- return Sec.Name.startswith("reloc.") || Sec.Name == "linking";
+ return Sec.Name.starts_with("reloc.") || Sec.Name == "linking";
}
static bool isNameSection(const Section &Sec) { return Sec.Name == "name"; }