From 9cb1fc034bcb1fc88c5ec65eb1fa9644b38eae7d Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 20 Sep 2011 17:55:19 +0000 Subject: Use StringRef instead of std::string. llvm-svn: 140154 --- llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index e701f995785..d55f0fa9192 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); -- cgit v1.2.3