[SchedModel] Record::getName() returns StringRef - avoid std::string creation. NFCI.

llvm-svn: 328437
This commit is contained in:
Simon Pilgrim 2018-03-24 21:22:32 +00:00
parent 34d512ec1e
commit 494d07516e
1 changed files with 2 additions and 2 deletions

View File

@ -387,9 +387,9 @@ void CodeGenSchedModels::collectSchedRW() {
RecVec RWDefs = Records.getAllDerivedDefinitions("SchedReadWrite");
for (Record *RWDef : RWDefs) {
if (!getSchedRWIdx(RWDef, RWDef->isSubClassOf("SchedRead"))) {
const std::string &Name = RWDef->getName();
StringRef Name = RWDef->getName();
if (Name != "NoWrite" && Name != "ReadDefault")
dbgs() << "Unused SchedReadWrite " << RWDef->getName() << '\n';
dbgs() << "Unused SchedReadWrite " << Name << '\n';
}
});
}