1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

[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 6305ab4346
commit 6b345575c4

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';
}
});
}