diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-01-06 09:16:02 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-01-06 09:16:02 +0000 |
commit | 96e9a91f55a0af48d41d64a377bdc7ff613042ae (patch) | |
tree | 14775ac5a09c4de582362d8c1f78fc3a03a1c501 /llvm/lib/Support/Statistic.cpp | |
parent | 985a535e4ffbeac76218c17f6ecfd160ec75186e (diff) | |
download | bcm5719-llvm-96e9a91f55a0af48d41d64a377bdc7ff613042ae.tar.gz bcm5719-llvm-96e9a91f55a0af48d41d64a377bdc7ff613042ae.zip |
Pass std::string to constructor as const reference to avoid multiple
copies.
llvm-svn: 10705
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
-rw-r--r-- | llvm/lib/Support/Statistic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp index 9589fd7ebd9..7fa7547fee3 100644 --- a/llvm/lib/Support/Statistic.cpp +++ b/llvm/lib/Support/Statistic.cpp @@ -43,7 +43,7 @@ struct StatRecord { std::string Value; const char *Name, *Desc; - StatRecord(const std::string V, const char *N, const char *D) + StatRecord(const std::string &V, const char *N, const char *D) : Value(V), Name(N), Desc(D) {} bool operator<(const StatRecord &SR) const { |