mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-30 06:40:53 +00:00
Pass std::string to constructor as const reference to avoid multiple
copies. llvm-svn: 10705
This commit is contained in:
parent
b238b68122
commit
ac49a51bac
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user