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 | 9cb1fc034bcb1fc88c5ec65eb1fa9644b38eae7d (patch) | |
tree | 3adfb0010f91e83db593cc2254c75ba9825419f1 /llvm | |
parent | 2ad2eb527b2de2a3ee1f01bba7fcf04812c46bc4 (diff) | |
download | llvm-9cb1fc034bcb1fc88c5ec65eb1fa9644b38eae7d.zip llvm-9cb1fc034bcb1fc88c5ec65eb1fa9644b38eae7d.tar.gz llvm-9cb1fc034bcb1fc88c5ec65eb1fa9644b38eae7d.tar.bz2 |
Use StringRef instead of std::string.
llvm-svn: 140154
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index e701f99..d55f0fa 100644 --- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/llvm/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); |