[all-commits] [llvm/llvm-project] 792bb7: [MCContext] Use `const Twine &` in symbol creation...

paperchalice via All-commits all-commits at lists.llvm.org
Tue Mar 21 23:14:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 792bb70d298554a2fc431ffa7b83f37883336e78
      https://github.com/llvm/llvm-project/commit/792bb70d298554a2fc431ffa7b83f37883336e78
  Author: paperchalice <lgamma at 163.com>
  Date:   2023-03-21 (Tue, 21 Mar 2023)

  Changed paths:
    M llvm/include/llvm/MC/MCContext.h
    M llvm/lib/MC/MCContext.cpp

  Log Message:
  -----------
  [MCContext] Use `const Twine &` in symbol creation methods. NFC

All of these methods will invoke `getOrCreateSymbol(const Twine &Name)`, using `Twine` here makes these methods more flexible.

Differential Revision: https://reviews.llvm.org/D145923




More information about the All-commits mailing list