Index: include/llvm/TableGen/Record.h =================================================================== --- include/llvm/TableGen/Record.h +++ include/llvm/TableGen/Record.h @@ -1292,18 +1292,6 @@ bool IsAnonymous; - // Class-instance values can be used by other defs. For example, Struct - // is used here as a template argument to another class: - // - // multiclass MultiClass { - // def Def : Class>; - // - // These need to get fully resolved before instantiating any other - // definitions that use them (e.g. Def). However, inside a multiclass they - // can't be immediately resolved so we mark them ResolveFirst to fully - // resolve them later as soon as the multiclass is instantiated. - bool ResolveFirst = false; - void init(); void checkName(); @@ -1327,7 +1315,7 @@ Name(O.Name), Locs(O.Locs), TemplateArgs(O.TemplateArgs), Values(O.Values), SuperClasses(O.SuperClasses), TrackedRecords(O.TrackedRecords), ID(LastID++), - IsAnonymous(O.IsAnonymous), ResolveFirst(O.ResolveFirst) { } + IsAnonymous(O.IsAnonymous) { } static unsigned getNewUID() { return LastID++; } @@ -1462,14 +1450,6 @@ return IsAnonymous; } - bool isResolveFirst() const { - return ResolveFirst; - } - - void setResolveFirst(bool b) { - ResolveFirst = b; - } - void print(raw_ostream &OS) const; void dump() const; Index: lib/TableGen/TGParser.cpp =================================================================== --- lib/TableGen/TGParser.cpp +++ lib/TableGen/TGParser.cpp @@ -2726,12 +2726,6 @@ if (ResolveMulticlassDef(*MC, CurRec, DefProto.get(), DefmLoc)) return Error(SubClassLoc, "could not instantiate def"); - // Defs that can be used by other definitions should be fully resolved - // before any use. - if (DefProto->isResolveFirst() && !CurMultiClass) { - CurRec->resolveReferences(); - CurRec->setResolveFirst(false); - } NewRecDefs.push_back(CurRec); }