projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove superfluous .str() and replace std::string concatenation with Twine.
[oota-llvm.git]
/
lib
/
Target
/
TargetMachine.cpp
diff --git
a/lib/Target/TargetMachine.cpp
b/lib/Target/TargetMachine.cpp
index dd07f818477a6631c87af9482d22b27888e9c82b..5807cf7ca3263c3ee8679cd2946b65348325a57d 100644
(file)
--- a/
lib/Target/TargetMachine.cpp
+++ b/
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);
}