Remove superfluous .str() and replace std::string concatenation with Twine.
[oota-llvm.git] / lib / Target / TargetMachine.cpp
index dd07f818477a6631c87af9482d22b27888e9c82b..5807cf7ca3263c3ee8679cd2946b65348325a57d 100644 (file)
@@ -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);
 }