Skip to content

Commit 6075275

Browse files
committed
[AsmPrinter] Don't pass Twine by value. NFC
1 parent bfe8523 commit 6075275

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/CodeGen/AsmPrinter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ class AsmPrinter : public MachineFunctionPass {
632632
StringRef Suffix) const;
633633

634634
/// Return the MCSymbol for the specified ExternalSymbol.
635-
MCSymbol *GetExternalSymbolSymbol(Twine Sym) const;
635+
MCSymbol *GetExternalSymbolSymbol(const Twine &Sym) const;
636636

637637
/// Return the symbol for the specified jump table entry.
638638
MCSymbol *GetJTISymbol(unsigned JTID, bool isLinkerPrivate = false) const;

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4142,7 +4142,7 @@ MCSymbol *AsmPrinter::getSymbolWithGlobalValueBase(const GlobalValue *GV,
41424142
}
41434143

41444144
/// Return the MCSymbol for the specified ExternalSymbol.
4145-
MCSymbol *AsmPrinter::GetExternalSymbolSymbol(Twine Sym) const {
4145+
MCSymbol *AsmPrinter::GetExternalSymbolSymbol(const Twine &Sym) const {
41464146
SmallString<60> NameStr;
41474147
Mangler::getNameWithPrefix(NameStr, Sym, getDataLayout());
41484148
return OutContext.getOrCreateSymbol(NameStr);

0 commit comments

Comments
 (0)