summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-03-27 17:51:30 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-03-27 17:51:30 +0000
commit75e0c4b0603c2006111f164c4113c4f26bcdaf64 (patch)
treefea0a83b9bc4d00a2df61934123a5e374f4516c3 /llvm/lib/Target/PowerPC/PPCMCInstLower.cpp
parent6dcddc21f83def171f2c0f558ae85a1994809a67 (diff)
downloadbcm5719-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.cpp2
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
OpenPOWER on IntegriCloud