[all-commits] [llvm/llvm-project] ad8fd5: [BOLT] Use StringRef::{starts, ends}_with (NFC)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Wed Dec 13 23:35:04 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad8fd5b18545f90a2c3abcd056e9c566721d8711
      https://github.com/llvm/llvm-project/commit/ad8fd5b18545f90a2c3abcd056e9c566721d8711
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-12-13 (Wed, 13 Dec 2023)

  Changed paths:
    M bolt/include/bolt/Core/BinaryContext.h
    M bolt/lib/Core/BinaryContext.cpp
    M bolt/lib/Core/BinaryData.cpp
    M bolt/lib/Passes/IndirectCallPromotion.cpp
    M bolt/lib/Passes/ReorderData.cpp
    M bolt/lib/Passes/ShrinkWrapping.cpp
    M bolt/lib/Profile/DataAggregator.cpp
    M bolt/lib/Profile/DataReader.cpp
    M bolt/lib/Profile/YAMLProfileReader.cpp
    M bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp
    M bolt/lib/Rewrite/RewriteInstance.cpp
    M bolt/tools/merge-fdata/merge-fdata.cpp

  Log Message:
  -----------
  [BOLT] Use StringRef::{starts,ends}_with (NFC)

This patch replaces uses of StringRef::{starts,ends}with with
StringRef::{starts,ends}_with for consistency with
std::{string,string_view}::{starts,ends}_with in C++20.

I'm planning to deprecate and eventually remove
StringRef::{starts,ends}with.




More information about the All-commits mailing list