Use StringRef instead of std::string.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140154 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2011-09-20 17:55:19 +00:00
parent a894c8e344
commit 68155d31cd

View File

@ -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);