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:
parent
6305ab4346
commit
6b345575c4
@ -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';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user