diff options
| author | Kazu Hirata <kazu@google.com> | 2023-12-09 14:28:45 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-09 14:28:45 -0800 |
| commit | cc4ecfd68b79a44f101fe9924d088a83477797c0 (patch) | |
| tree | 4d63911ccc3d757fc04a6706d6726e6ae765bd60 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
| parent | 5c8755f9f40e5b5f4e26a9a0fdb4993cb8a57202 (diff) | |
[ADT] Rename SmallString::{starts,ends}with to {starts,ends}_with (#74916)
This patch renames {starts,ends}with to {starts,ends}_with for
consistency with std::{string,string_view}::{starts,ends}_with in
C++20. Since there are only a handful of occurrences, this patch
skips the deprecation phase and simply renames them.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 16cc83b8881f..9827bd3ff4f1 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -1048,7 +1048,7 @@ MCSection *TargetLoweringObjectFileELF::getSectionForMachineBasicBlock( } else { Name += FunctionSectionName; if (TM.getUniqueBasicBlockSectionNames()) { - if (!Name.endswith(".")) + if (!Name.ends_with(".")) Name += "."; Name += MBB.getSymbol()->getName(); } else { |
