[MCContext] Use `const Twine &` in symbol creation methods. NFC
authorpaperchalice <lgamma@163.com>
Wed, 22 Mar 2023 06:13:59 +0000 (23:13 -0700)
committerFangrui Song <i@maskray.me>
Wed, 22 Mar 2023 06:13:59 +0000 (23:13 -0700)
commit792bb70d298554a2fc431ffa7b83f37883336e78
tree5499948ad5b6aa2395d737e7674d8f7ab4d294eb
parent829446cb459fee326fc7f6ebf84b357e1665e4d1
[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
llvm/include/llvm/MC/MCContext.h
llvm/lib/MC/MCContext.cpp