diff options
author | Devang Patel <dpatel@apple.com> | 2011-09-20 17:55:19 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-09-20 17:55:19 +0000 |
commit | 68155d31cd0175be89e26ee68387cb411fca537b (patch) | |
tree | 533c97fbddcf3deccb8efbaf26126184ae8cc5e6 /lib/Transforms/Instrumentation/GCOVProfiling.cpp | |
parent | a894c8e34453493a9d3fb2ffbbc21151c3965b63 (diff) |
Use StringRef instead of std::string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/GCOVProfiling.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/GCOVProfiling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/lib/Transforms/Instrumentation/GCOVProfiling.cpp index e701f99578..d55f0fa919 100644 --- a/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -186,7 +186,7 @@ namespace { // other blocks. class GCOVBlock : public GCOVRecord { public: - GCOVLines &getFile(std::string Filename) { + GCOVLines &getFile(StringRef Filename) { GCOVLines *&Lines = LinesByFile[Filename]; if (!Lines) { Lines = new GCOVLines(os); |