[llvm-commits] CVS: llvm/lib/Support/Statistic.cpp
    Alkis Evlogimenos 
    alkis at cs.uiuc.edu
       
    Tue Jan  6 03:17:01 PST 2004
    
    
  
Changes in directory llvm/lib/Support:
Statistic.cpp updated: 1.13 -> 1.14
---
Log message:
Pass std::string to constructor as const reference to avoid multiple
copies.
---
Diffs of the changes:  (+1 -1)
Index: llvm/lib/Support/Statistic.cpp
diff -u llvm/lib/Support/Statistic.cpp:1.13 llvm/lib/Support/Statistic.cpp:1.14
--- llvm/lib/Support/Statistic.cpp:1.13	Sun Dec 14 15:27:33 2003
+++ llvm/lib/Support/Statistic.cpp	Tue Jan  6 03:16:02 2004
@@ -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 {
    
    
More information about the llvm-commits
mailing list