@@ -3398,13 +3398,11 @@ class PrintExpr : public ExprVisitor<PrintExpr, void, Label>,
3398
3398
// / FIXME: This should use ExprWalker to print children.
3399
3399
3400
3400
void printCommon (Expr *E, const char *C, Label label) {
3401
- PrintOptions PO;
3402
- PO.PrintTypesForDebugging = true ;
3403
-
3404
3401
printHead (C, ExprColor, label);
3405
3402
3406
3403
printFlag (E->isImplicit (), " implicit" , ExprModifierColor);
3407
- printTypeField (GetTypeOfExpr (E), Label::always (" type" ), PO, TypeColor);
3404
+ printTypeField (GetTypeOfExpr (E), Label::always (" type" ),
3405
+ PrintOptions::forDebugging (), TypeColor);
3408
3406
3409
3407
// If we have a source range and an ASTContext, print the source range.
3410
3408
if (auto Ty = GetTypeOfExpr (E)) {
@@ -4054,10 +4052,8 @@ class PrintExpr : public ExprVisitor<PrintExpr, void, Label>,
4054
4052
void visitForceTryExpr (ForceTryExpr *E, Label label) {
4055
4053
printCommon (E, " force_try_expr" , label);
4056
4054
4057
- PrintOptions PO;
4058
- PO.PrintTypesForDebugging = true ;
4059
- printTypeField (E->getThrownError (), Label::always (" thrown_error" ), PO,
4060
- TypeColor);
4055
+ printTypeField (E->getThrownError (), Label::always (" thrown_error" ),
4056
+ PrintOptions::forDebugging (), TypeColor);
4061
4057
4062
4058
printRec (E->getSubExpr (), Label::optional (" sub_expr" ));
4063
4059
printFoot ();
@@ -4066,10 +4062,8 @@ class PrintExpr : public ExprVisitor<PrintExpr, void, Label>,
4066
4062
void visitOptionalTryExpr (OptionalTryExpr *E, Label label) {
4067
4063
printCommon (E, " optional_try_expr" , label);
4068
4064
4069
- PrintOptions PO;
4070
- PO.PrintTypesForDebugging = true ;
4071
- printTypeField (E->getThrownError (), Label::always (" thrown_error" ), PO,
4072
- TypeColor);
4065
+ printTypeField (E->getThrownError (), Label::always (" thrown_error" ),
4066
+ PrintOptions::forDebugging (), TypeColor);
4073
4067
4074
4068
printRec (E->getSubExpr (), Label::optional (" sub_expr" ));
4075
4069
printFoot ();
@@ -4553,10 +4547,8 @@ class PrintExpr : public ExprVisitor<PrintExpr, void, Label>,
4553
4547
void visitTypeValueExpr (TypeValueExpr *E, Label label) {
4554
4548
printCommon (E, " type_value_expr" , label);
4555
4549
4556
- PrintOptions PO;
4557
- PO.PrintTypesForDebugging = true ;
4558
- printTypeField (E->getParamType (), Label::always (" param_type" ), PO,
4559
- TypeColor);
4550
+ printTypeField (E->getParamType (), Label::always (" param_type" ),
4551
+ PrintOptions::forDebugging (), TypeColor);
4560
4552
4561
4553
printFoot ();
4562
4554
}
0 commit comments