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/TargetMachine.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/TargetMachine.cpp')
| -rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index dd07f818477..5807cf7ca32 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -187,5 +187,5 @@ MCSymbol *TargetMachine::getSymbol(const GlobalValue *GV, Mangler &Mang) const { SmallString<60> NameStr; getNameWithPrefix(NameStr, GV, Mang); const TargetLoweringObjectFile *TLOF = getObjFileLowering(); - return TLOF->getContext().GetOrCreateSymbol(NameStr.str()); + return TLOF->getContext().GetOrCreateSymbol(NameStr); } |

