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/CodeGen/MachineFunction.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/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 6ceace8696c..448531fb716 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -380,7 +380,7 @@ namespace llvm { DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {} static std::string getGraphName(const MachineFunction *F) { - return "CFG for '" + F->getName().str() + "' function"; + return ("CFG for '" + F->getName() + "' function").str(); } std::string getNodeLabel(const MachineBasicBlock *Node, @@ -468,7 +468,7 @@ MCSymbol *MachineFunction::getJTISymbol(unsigned JTI, MCContext &Ctx, SmallString<60> Name; raw_svector_ostream(Name) << Prefix << "JTI" << getFunctionNumber() << '_' << JTI; - return Ctx.GetOrCreateSymbol(Name.str()); + return Ctx.GetOrCreateSymbol(Name); } /// getPICBaseSymbol - Return a function-local symbol to represent the PIC |