[lld] StringRef::{starts,ends}with => {starts,ends}_with. NFC
authorFangrui Song <i@maskray.me>
Mon, 5 Jun 2023 21:36:19 +0000 (14:36 -0700)
committerFangrui Song <i@maskray.me>
Mon, 5 Jun 2023 21:36:19 +0000 (14:36 -0700)
commit8d85c96e0e3a058ae82930cf6767d9a1c8cc7c1d
tree0edfcad628936f75451c686bc462e94b7011ddb4
parentfffa05a2bcb548d5189e8c2e52d2ed2e7ebb2498
[lld] StringRef::{starts,ends}with => {starts,ends}_with. NFC

The latter form is now preferred to be similar to C++20 starts_with.
This replacement also removes one function call when startswith is not inlined.
45 files changed:
lld/COFF/Chunks.cpp
lld/COFF/Chunks.h
lld/COFF/Driver.cpp
lld/COFF/DriverUtils.cpp
lld/COFF/ICF.cpp
lld/COFF/InputFiles.cpp
lld/COFF/MinGW.cpp
lld/COFF/PDB.cpp
lld/COFF/SymbolTable.cpp
lld/COFF/Writer.cpp
lld/Common/Args.cpp
lld/Common/Reproduce.cpp
lld/Common/Strings.cpp
lld/ELF/AArch64ErrataFix.cpp
lld/ELF/ARMErrataFix.cpp
lld/ELF/Driver.cpp
lld/ELF/DriverUtils.cpp
lld/ELF/ICF.cpp
lld/ELF/InputFiles.cpp
lld/ELF/InputSection.cpp
lld/ELF/InputSection.h
lld/ELF/LTO.cpp
lld/ELF/MarkLive.cpp
lld/ELF/OutputSections.cpp
lld/ELF/Relocations.cpp
lld/ELF/ScriptLexer.cpp
lld/ELF/ScriptParser.cpp
lld/ELF/SyntheticSections.cpp
lld/ELF/Writer.cpp
lld/MachO/Arch/ARM64Common.cpp
lld/MachO/Arch/X86_64.cpp
lld/MachO/Driver.cpp
lld/MachO/DriverUtils.cpp
lld/MachO/InputFiles.cpp
lld/MachO/InputSection.cpp
lld/MachO/ObjC.cpp
lld/MachO/SymbolTable.cpp
lld/MachO/Symbols.h
lld/MachO/SyntheticSections.cpp
lld/MachO/Writer.cpp
lld/MinGW/Driver.cpp
lld/wasm/Driver.cpp
lld/wasm/InputChunks.cpp
lld/wasm/InputFiles.cpp
lld/wasm/Writer.cpp