[all-commits] [llvm/llvm-project] d1b570: DetailedRecordsBackend.cpp - printSectionHeading -...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun Jun 13 08:53:33 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1b57086d55afcfa94711a0b09c22a4113f6261f
      https://github.com/llvm/llvm-project/commit/d1b57086d55afcfa94711a0b09c22a4113f6261f
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-06-13 (Sun, 13 Jun 2021)

  Changed paths:
    M llvm/lib/TableGen/DetailedRecordsBackend.cpp

  Log Message:
  -----------
  DetailedRecordsBackend.cpp - printSectionHeading - avoid std::string creation/copies.

Don't create std::string from constant c-strings or pass std::string by value - we can use StringRef instead.




More information about the All-commits mailing list