Skip to content

Commit 5730e4e

Browse files
committed
AST: Rename debugger pretty printer Type::dumpPrint to print
This name is consistent with other output API and, thus, more discoverable.
1 parent 26e888e commit 5730e4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/Types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ class alignas(1 << TypeAlignInBits) TypeBase
14641464
SWIFT_DEBUG_DUMP;
14651465
void dump(raw_ostream &os, unsigned indent = 0) const;
14661466

1467-
SWIFT_DEBUG_DUMPER(dumpPrint());
1467+
SWIFT_DEBUG_DUMPER(print());
14681468
void print(raw_ostream &OS,
14691469
const PrintOptions &PO = PrintOptions()) const;
14701470
void print(ASTPrinter &Printer, const PrintOptions &PO) const;

lib/AST/ASTPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7633,7 +7633,7 @@ std::string TypeBase::getStringAsComponent(const PrintOptions &PO) const {
76337633
return OS.str();
76347634
}
76357635

7636-
void TypeBase::dumpPrint() const {
7636+
void TypeBase::print() const {
76377637
print(llvm::errs());
76387638
llvm::errs() << '\n';
76397639
}

0 commit comments

Comments
 (0)