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
/
Transforms
/
Instrumentation
/
GCOVProfiling.cpp
diff --git
a/lib/Transforms/Instrumentation/GCOVProfiling.cpp
b/lib/Transforms/Instrumentation/GCOVProfiling.cpp
index a793e69ce3d6be563dcd2f8c5b54db07cea17d7a..8882dea5e0420e6e2c8a250a5a78593e3f74a73e 100644
(file)
--- a/
lib/Transforms/Instrumentation/GCOVProfiling.cpp
+++ b/
lib/Transforms/Instrumentation/GCOVProfiling.cpp
@@
-442,7
+442,7
@@
std::string GCOVProfiler::mangleName(DICompileUnit CU, const char *NewStem) {
StringRef FName = sys::path::filename(Filename);
SmallString<128> CurPath;
if (sys::fs::current_path(CurPath)) return FName;
- sys::path::append(CurPath, FName
.str()
);
+ sys::path::append(CurPath, FName);
return CurPath.str();
}