llvm.org GIT mirror llvm / 4d4806b
TableGen: avoid string copy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274584 91177308-0d34-0410-b5e6-96231b3b80d8 Tim Northover 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
229229
230230 void SearchableTableEmitter::emitMapping(Record *InstanceClass,
231231 raw_ostream &OS) {
232 std::string TableName = InstanceClass->getName();
232 const std::string &TableName = InstanceClass->getName();
233233 std::vector Items = Records.getAllDerivedDefinitions(TableName);
234234
235235 // Gather all the records we're going to need for this particular mapping.