mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Use uniqued StringInit pointers for lookups.
This avoids a gazillion StringMap and dynamic_cast calls, making TableGen run 3x faster. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148091 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -64,7 +64,7 @@ bool TGParser::AddValue(Record *CurRec, SMLoc Loc, const RecordVal &RV) {
|
||||
if (CurRec == 0)
|
||||
CurRec = &CurMultiClass->Rec;
|
||||
|
||||
if (RecordVal *ERV = CurRec->getValue(RV.getName())) {
|
||||
if (RecordVal *ERV = CurRec->getValue(RV.getNameInit())) {
|
||||
// The value already exists in the class, treat this as a set.
|
||||
if (ERV->setValue(RV.getValue()))
|
||||
return Error(Loc, "New definition of '" + RV.getName() + "' of type '" +
|
||||
|
Reference in New Issue
Block a user