mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-10 06:24:58 +00:00
Twines should be passed by const ref.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229590 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b3ff6a88b6
commit
a12aeb0ac6
@ -308,10 +308,10 @@ public:
|
|||||||
public:
|
public:
|
||||||
/// Return the MCSymbol corresponding to the assembler temporary label with
|
/// Return the MCSymbol corresponding to the assembler temporary label with
|
||||||
/// the specified stem and unique ID.
|
/// the specified stem and unique ID.
|
||||||
MCSymbol *GetTempSymbol(Twine Name, unsigned ID) const;
|
MCSymbol *GetTempSymbol(const Twine &Name, unsigned ID) const;
|
||||||
|
|
||||||
/// Return an assembler temporary label with the specified stem.
|
/// Return an assembler temporary label with the specified stem.
|
||||||
MCSymbol *GetTempSymbol(Twine Name) const;
|
MCSymbol *GetTempSymbol(const Twine &Name) const;
|
||||||
|
|
||||||
/// Return the MCSymbol for a private symbol with global value name as its
|
/// Return the MCSymbol for a private symbol with global value name as its
|
||||||
/// base, with the specified suffix.
|
/// base, with the specified suffix.
|
||||||
|
@ -2064,7 +2064,7 @@ void AsmPrinter::printOffset(int64_t Offset, raw_ostream &OS) const {
|
|||||||
|
|
||||||
/// GetTempSymbol - Return the MCSymbol corresponding to the assembler
|
/// GetTempSymbol - Return the MCSymbol corresponding to the assembler
|
||||||
/// temporary label with the specified stem and unique ID.
|
/// temporary label with the specified stem and unique ID.
|
||||||
MCSymbol *AsmPrinter::GetTempSymbol(Twine Name, unsigned ID) const {
|
MCSymbol *AsmPrinter::GetTempSymbol(const Twine &Name, unsigned ID) const {
|
||||||
const DataLayout *DL = TM.getDataLayout();
|
const DataLayout *DL = TM.getDataLayout();
|
||||||
return OutContext.GetOrCreateSymbol(Twine(DL->getPrivateGlobalPrefix()) +
|
return OutContext.GetOrCreateSymbol(Twine(DL->getPrivateGlobalPrefix()) +
|
||||||
Name + Twine(ID));
|
Name + Twine(ID));
|
||||||
@ -2072,7 +2072,7 @@ MCSymbol *AsmPrinter::GetTempSymbol(Twine Name, unsigned ID) const {
|
|||||||
|
|
||||||
/// GetTempSymbol - Return an assembler temporary label with the specified
|
/// GetTempSymbol - Return an assembler temporary label with the specified
|
||||||
/// stem.
|
/// stem.
|
||||||
MCSymbol *AsmPrinter::GetTempSymbol(Twine Name) const {
|
MCSymbol *AsmPrinter::GetTempSymbol(const Twine &Name) const {
|
||||||
const DataLayout *DL = TM.getDataLayout();
|
const DataLayout *DL = TM.getDataLayout();
|
||||||
return OutContext.GetOrCreateSymbol(Twine(DL->getPrivateGlobalPrefix())+
|
return OutContext.GetOrCreateSymbol(Twine(DL->getPrivateGlobalPrefix())+
|
||||||
Name);
|
Name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user