Skip to content

Commit

Permalink
XXX: Add tracing of typeswitch.
Browse files Browse the repository at this point in the history
Signed-off-by: Ingo Müller <[email protected]>
  • Loading branch information
ingomueller-net committed Jul 10, 2024
1 parent 088dec1 commit 71fa7ed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/Target/SubstraitPB/Export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,11 @@ FailureOr<std::unique_ptr<Expression>>
exportOperation(ExpressionOpInterface op) {
return llvm::TypeSwitch<Operation *, FailureOr<std::unique_ptr<Expression>>>(
op)
.Case<FieldReferenceOp, LiteralOp>(
[&](auto op) { return exportOperation(op); })
.Case<FieldReferenceOp, LiteralOp>([&](auto op) {
llvm::errs() << __PRETTY_FUNCTION__ << "\n";
op.dump();
return exportOperation(op);
})
.Default(
[](auto op) { return op->emitOpError("not supported for export"); });
}
Expand Down

0 comments on commit 71fa7ed

Please sign in to comment.