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