Skip to content

Commit aa84326

Browse files
committed
[TableGen][NFC] Remove unreachable code
The removed code assumed that we can define classes inside a multiclass, so the name of outer multiclass is concatenated to the qualified name. But for current TableGen grammar, we can't define classes in multiclass, so it is unnecessary. This commit is requested in D152998.
1 parent 528447f commit aa84326

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/TableGen/TGParser.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,6 @@ static Init *QualifyName(Record &CurRec, MultiClass *CurMultiClass, Init *Name,
117117
Init *NewName = BinOpInit::getStrConcat(CurRec.getNameInit(),
118118
StringInit::get(RK, Scoper));
119119
NewName = BinOpInit::getStrConcat(NewName, Name);
120-
if (CurMultiClass && Scoper != "::") {
121-
Init *Prefix = BinOpInit::getStrConcat(CurMultiClass->Rec.getNameInit(),
122-
StringInit::get(RK, "::"));
123-
NewName = BinOpInit::getStrConcat(Prefix, NewName);
124-
}
125120

126121
if (BinOpInit *BinOp = dyn_cast<BinOpInit>(NewName))
127122
NewName = BinOp->Fold(&CurRec);

0 commit comments

Comments
 (0)