Pass std::string to constructor as const reference to avoid multiple
copies.
llvm-svn: 10705
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp
index 9589fd7..7fa7547 100644
--- a/llvm/lib/Support/Statistic.cpp
+++ b/llvm/lib/Support/Statistic.cpp
@@ -43,7 +43,7 @@
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 {