This may seem unusual, but makes most debug tblgen builds ~10% faster.
Usually we wouldn't care about speed that much in debug builds, but for
tblgen that also translates into build time.
llvm-svn: 288652
//===----------------------------------------------------------------------===//
class RecordVal {
+ friend class Record;
Init *Name;
PointerIntPair<RecTy *, 1, bool> TyAndPrefix;
Init *Value;
const RecordVal *getValue(const Init *Name) const {
for (const RecordVal &Val : Values)
- if (Val.getNameInit() == Name) return &Val;
+ if (Val.Name == Name) return &Val;
return nullptr;
}
RecordVal *getValue(const Init *Name) {
for (RecordVal &Val : Values)
- if (Val.getNameInit() == Name) return &Val;
+ if (Val.Name == Name) return &Val;
return nullptr;
}