[all-commits] [llvm/llvm-project] 9cbd70: [NFC] llvm-cgdata use StringRef in exitWithError t...

Amr Hesham via All-commits all-commits at lists.llvm.org
Mon Jan 20 09:26:13 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cbd705e32bbb869c897696f4a6659f2ce00b64a
      https://github.com/llvm/llvm-project/commit/9cbd705e32bbb869c897696f4a6659f2ce00b64a
  Author: Amr Hesham <amr96 at programmer.net>
  Date:   2025-01-20 (Mon, 20 Jan 2025)

  Changed paths:
    M llvm/tools/llvm-cgdata/llvm-cgdata.cpp

  Log Message:
  -----------
  [NFC] llvm-cgdata use StringRef in exitWithError to reduce construction (#120771)

Replace `static void exitWithError(Twine Message, std::string Whence =
"", std::string Hint = "")` std::string with StringRef to remove
constructing Strings on every call or passing by value

Fixes: #100065



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list