diff --git a/llvm/include/llvm/TableGen/Record.h b/llvm/include/llvm/TableGen/Record.h index 6326d62d34865..b4f06a9adcfc5 100644 --- a/llvm/include/llvm/TableGen/Record.h +++ b/llvm/include/llvm/TableGen/Record.h @@ -142,8 +142,6 @@ class BitsRecTy : public RecTy { std::string getAsString() const override; bool typeIsConvertibleTo(const RecTy *RHS) const override; - - bool typeIsA(const RecTy *RHS) const override; }; /// 'int' - Represent an integer value of no particular size diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp index 7e0da04e1c113..df1a4d47ff96e 100644 --- a/llvm/lib/TableGen/Record.cpp +++ b/llvm/lib/TableGen/Record.cpp @@ -151,12 +151,6 @@ bool BitsRecTy::typeIsConvertibleTo(const RecTy *RHS) const { return (kind == BitRecTyKind && Size == 1) || (kind == IntRecTyKind); } -bool BitsRecTy::typeIsA(const RecTy *RHS) const { - if (const BitsRecTy *RHSb = dyn_cast(RHS)) - return RHSb->Size == Size; - return false; -} - IntRecTy *IntRecTy::get(RecordKeeper &RK) { return &RK.getImpl().SharedIntRecTy; }