TableGen: Remove OpInit::Fold

Summary:
Virtual dispatch is not actually used anywhere.

Change-Id: I9829c5c59920ea27fb9bc17f1442156a3bb09a65

Reviewers: arsenm, craig.topper, tra, MartinO

Subscribers: wdng, llvm-commits

Differential Revision: https://reviews.llvm.org/D44197

llvm-svn: 327846
This commit is contained in:
Nicolai Haehnle 2018-03-19 14:13:59 +00:00
parent 1eaebc62d7
commit a43af64fa2
1 changed files with 3 additions and 7 deletions

View File

@ -742,10 +742,6 @@ public:
virtual unsigned getNumOperands() const = 0;
virtual Init *getOperand(unsigned i) const = 0;
// Fold - If possible, fold this to a simpler init. Return this if not
// possible to fold.
virtual Init *Fold(Record *CurRec) const = 0;
Init *getBit(unsigned Bit) const override;
};
@ -792,7 +788,7 @@ public:
// Fold - If possible, fold this to a simpler init. Return this if not
// possible to fold.
Init *Fold(Record *CurRec) const override;
Init *Fold(Record *CurRec) const;
Init *resolveReferences(Resolver &R) const override;
@ -847,7 +843,7 @@ public:
// Fold - If possible, fold this to a simpler init. Return this if not
// possible to fold.
Init *Fold(Record *CurRec) const override;
Init *Fold(Record *CurRec) const;
Init *resolveReferences(Resolver &R) const override;
@ -905,7 +901,7 @@ public:
// Fold - If possible, fold this to a simpler init. Return this if not
// possible to fold.
Init *Fold(Record *CurRec) const override;
Init *Fold(Record *CurRec) const;
bool isComplete() const override {
return LHS->isComplete() && MHS->isComplete() && RHS->isComplete();