From a1c1c2357cf2a14272bfd57962f0e9a43e8ec548 Mon Sep 17 00:00:00 2001 From: Nicolai Haehnle Date: Mon, 19 Mar 2018 14:13:59 +0000 Subject: [PATCH] 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327846 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/TableGen/Record.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h index 00a6b698757..de0660018ba 100644 --- a/include/llvm/TableGen/Record.h +++ b/include/llvm/TableGen/Record.h @@ -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(); -- 2.11.0