mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 21:50:40 +00:00
TableGen: avoid string copy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274584 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2442068c12
commit
4d4806bd1c
@ -230,7 +230,7 @@ void SearchableTableEmitter::emitLookupDeclaration(StringRef Name,
|
||||
|
||||
void SearchableTableEmitter::emitMapping(Record *InstanceClass,
|
||||
raw_ostream &OS) {
|
||||
std::string TableName = InstanceClass->getName();
|
||||
const std::string &TableName = InstanceClass->getName();
|
||||
std::vector<Record *> Items = Records.getAllDerivedDefinitions(TableName);
|
||||
|
||||
// Gather all the records we're going to need for this particular mapping.
|
||||
|
Loading…
Reference in New Issue
Block a user