|
35 | 35 | #include "swift/AST/Witness.h" |
36 | 36 | #include "swift/Basic/ArrayRefView.h" |
37 | 37 | #include "swift/Basic/Compiler.h" |
| 38 | +#include "swift/Basic/Debug.h" |
38 | 39 | #include "swift/Basic/InlineBitfield.h" |
39 | 40 | #include "swift/Basic/NullablePtr.h" |
40 | 41 | #include "swift/Basic/OptionalEnum.h" |
@@ -777,12 +778,8 @@ class alignas(1 << DeclAlignInBits) Decl { |
777 | 778 |
|
778 | 779 | SourceLoc TrailingSemiLoc; |
779 | 780 |
|
780 | | - LLVM_ATTRIBUTE_DEPRECATED( |
781 | | - void dump() const LLVM_ATTRIBUTE_USED, |
782 | | - "only for use within the debugger"); |
783 | | - LLVM_ATTRIBUTE_DEPRECATED( |
784 | | - void dump(const char *filename) const LLVM_ATTRIBUTE_USED, |
785 | | - "only for use within the debugger"); |
| 781 | + SWIFT_DEBUG_DUMP; |
| 782 | + SWIFT_DEBUG_DUMPER(dump(const char *filename)); |
786 | 783 | void dump(raw_ostream &OS, unsigned Indent = 0) const; |
787 | 784 |
|
788 | 785 | /// Pretty-print the given declaration. |
@@ -1203,9 +1200,7 @@ class RequirementRepr { |
1203 | 1200 | return repr->SecondType.getTypeRepr(); |
1204 | 1201 | } |
1205 | 1202 |
|
1206 | | - LLVM_ATTRIBUTE_DEPRECATED( |
1207 | | - void dump() const LLVM_ATTRIBUTE_USED, |
1208 | | - "only for use within the debugger"); |
| 1203 | + SWIFT_DEBUG_DUMP; |
1209 | 1204 | void print(raw_ostream &OS) const; |
1210 | 1205 | void print(ASTPrinter &Printer) const; |
1211 | 1206 | }; |
@@ -1375,7 +1370,7 @@ class GenericParamList final : |
1375 | 1370 | GenericParamList *clone(DeclContext *dc) const; |
1376 | 1371 |
|
1377 | 1372 | void print(raw_ostream &OS) const; |
1378 | | - void dump(); |
| 1373 | + SWIFT_DEBUG_DUMP; |
1379 | 1374 | }; |
1380 | 1375 |
|
1381 | 1376 | /// A trailing where clause. |
@@ -2715,7 +2710,7 @@ class ValueDecl : public Decl { |
2715 | 2710 | void dumpRef(raw_ostream &os) const; |
2716 | 2711 |
|
2717 | 2712 | /// Dump a reference to the given declaration. |
2718 | | - void dumpRef() const; |
| 2713 | + SWIFT_DEBUG_DUMPER(dumpRef()); |
2719 | 2714 |
|
2720 | 2715 | /// Returns true if the declaration is a static member of a type. |
2721 | 2716 | /// |
|
0 commit comments