aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-01-06 09:16:02 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-01-06 09:16:02 +0000
commitd2c39e991e71821a5deeee6f8505448dd7af75dd (patch)
tree1b26313f7ab97bf01ae1d99d3f7a72d4615b7322 /lib
parent019314cdc791f342645363ac9df1a2f8634ff911 (diff)
downloadexternal_llvm-d2c39e991e71821a5deeee6f8505448dd7af75dd.zip
external_llvm-d2c39e991e71821a5deeee6f8505448dd7af75dd.tar.gz
external_llvm-d2c39e991e71821a5deeee6f8505448dd7af75dd.tar.bz2
Pass std::string to constructor as const reference to avoid multiple
copies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Statistic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp
index 9589fd7..7fa7547 100644
--- a/lib/Support/Statistic.cpp
+++ b/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 {