File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 14
14
//
15
15
// ===----------------------------------------------------------------------===//
16
16
17
- #if SWIFT_STDLIB_HAS_TYPE_PRINTING
18
-
19
17
#include " swift/Basic/STLExtras.h"
20
18
#include " swift/Demangling/Demangle.h"
21
19
#include " swift/AST/Ownership.h"
@@ -28,12 +26,6 @@ using namespace swift;
28
26
using namespace Demangle ;
29
27
using llvm::StringRef;
30
28
31
- [[noreturn]]
32
- static void printer_unreachable (const char *Message) {
33
- fprintf (stderr, " fatal error: %s\n " , Message);
34
- std::abort ();
35
- }
36
-
37
29
DemanglerPrinter &DemanglerPrinter::operator <<(unsigned long long n) & {
38
30
char buffer[32 ];
39
31
snprintf (buffer, sizeof (buffer), " %llu" , n);
@@ -53,6 +45,14 @@ DemanglerPrinter &DemanglerPrinter::operator<<(long long n) & {
53
45
return *this ;
54
46
}
55
47
48
+ #if SWIFT_STDLIB_HAS_TYPE_PRINTING
49
+
50
+ [[noreturn]]
51
+ static void printer_unreachable (const char *Message) {
52
+ fprintf (stderr, " fatal error: %s\n " , Message);
53
+ std::abort ();
54
+ }
55
+
56
56
std::string Demangle::genericParameterName (uint64_t depth, uint64_t index) {
57
57
DemanglerPrinter name;
58
58
do {
You can’t perform that action at this time.
0 commit comments