diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-03-27 17:51:30 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-03-27 17:51:30 +0000 |
commit | 75e0c4b0603c2006111f164c4113c4f26bcdaf64 (patch) | |
tree | fea0a83b9bc4d00a2df61934123a5e374f4516c3 /llvm/lib/Target/PowerPC/PPCMCInstLower.cpp | |
parent | 6dcddc21f83def171f2c0f558ae85a1994809a67 (diff) | |
download | bcm5719-llvm-75e0c4b0603c2006111f164c4113c4f26bcdaf64.tar.gz bcm5719-llvm-75e0c4b0603c2006111f164c4113c4f26bcdaf64.zip |
Remove superfluous .str() and replace std::string concatenation with Twine.
llvm-svn: 233392
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCMCInstLower.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCMCInstLower.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp b/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp index 0965cb35508..6df89fe2c7d 100644 --- a/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp +++ b/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp @@ -66,7 +66,7 @@ static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){ unsigned OrigLen = Name.size() - PrefixLen; Name += Suffix; - MCSymbol *Sym = Ctx.GetOrCreateSymbol(Name.str()); + MCSymbol *Sym = Ctx.GetOrCreateSymbol(Name); StringRef OrigName = StringRef(Name).substr(PrefixLen, OrigLen); // If the target flags on the operand changes the name of the symbol, do that |