diff --git a/flang/include/flang/Optimizer/Dialect/FIROps.td b/flang/include/flang/Optimizer/Dialect/FIROps.td --- a/flang/include/flang/Optimizer/Dialect/FIROps.td +++ b/flang/include/flang/Optimizer/Dialect/FIROps.td @@ -2822,9 +2822,6 @@ ]; let extraClassDeclaration = [{ - /// Append a dispatch table entry to the table. - void appendTableEntry(mlir::Operation *op); - static constexpr llvm::StringRef getParentAttrNameStr() { return "parent"; } static constexpr llvm::StringRef getExtendsKeyword() { return "extends"; } diff --git a/flang/lib/Optimizer/Dialect/FIROps.cpp b/flang/lib/Optimizer/Dialect/FIROps.cpp --- a/flang/lib/Optimizer/Dialect/FIROps.cpp +++ b/flang/lib/Optimizer/Dialect/FIROps.cpp @@ -1083,12 +1083,6 @@ // DispatchTableOp //===----------------------------------------------------------------------===// -void fir::DispatchTableOp::appendTableEntry(mlir::Operation *op) { - assert(mlir::isa(*op) && "operation must be a DTEntryOp"); - auto &block = getBlock(); - block.getOperations().insert(block.end(), op); -} - mlir::ParseResult fir::DispatchTableOp::parse(mlir::OpAsmParser &parser, mlir::OperationState &result) { // Parse the name as a symbol reference attribute.