================ @@ -170,6 +187,26 @@ static bool omitRegionTerm(mlir::Region &r) { return singleNonEmptyBlock && yieldsNothing(); } +void printVisibilityAttr(OpAsmPrinter &printer, + cir::VisibilityAttr &visibility) { + switch (visibility.getValue()) { + case cir::VisibilityKind::Hidden: + printer << "hidden"; + break; + case cir::VisibilityKind::Protected: ---------------- erichkeane wrote:
What other values here are there? Can we skip the `default` here and just have it try to print all? https://github.com/llvm/llvm-project/pull/145600 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits