mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-28 16:11:29 +00:00
[flang][NFC] Remove unused DispatchTableop fct
Remove `appendTableEntry` as it is not used. Reviewed By: jeanPerier, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D138293
This commit is contained in:
parent
4787efa380
commit
6f81795fca
@ -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"; }
|
||||
|
||||
|
@ -1083,12 +1083,6 @@ mlir::FunctionType fir::DispatchOp::getFunctionType() {
|
||||
// DispatchTableOp
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
void fir::DispatchTableOp::appendTableEntry(mlir::Operation *op) {
|
||||
assert(mlir::isa<fir::DTEntryOp>(*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.
|
||||
|
Loading…
Reference in New Issue
Block a user