diff --git a/flang/include/flang/Optimizer/Dialect/FIROps.td b/flang/include/flang/Optimizer/Dialect/FIROps.td index 3e1ae7183956d..bf682b7e89d69 100644 --- a/flang/include/flang/Optimizer/Dialect/FIROps.td +++ b/flang/include/flang/Optimizer/Dialect/FIROps.td @@ -2822,9 +2822,6 @@ def fir_DispatchTableOp : fir_Op<"dispatch_table", ]; 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 index 53b21b3fb0d3f..016c691efc27f 100644 --- a/flang/lib/Optimizer/Dialect/FIROps.cpp +++ b/flang/lib/Optimizer/Dialect/FIROps.cpp @@ -1083,12 +1083,6 @@ mlir::FunctionType fir::DispatchOp::getFunctionType() { // 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.