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 1414//
1515// ===----------------------------------------------------------------------===//
1616
17- #if SWIFT_STDLIB_HAS_TYPE_PRINTING
18-
1917#include " swift/Basic/STLExtras.h"
2018#include " swift/Demangling/Demangle.h"
2119#include " swift/AST/Ownership.h"
@@ -28,12 +26,6 @@ using namespace swift;
2826using namespace Demangle ;
2927using llvm::StringRef;
3028
31- [[noreturn]]
32- static void printer_unreachable (const char *Message) {
33- fprintf (stderr, " fatal error: %s\n " , Message);
34- std::abort ();
35- }
36-
3729DemanglerPrinter &DemanglerPrinter::operator <<(unsigned long long n) & {
3830 char buffer[32 ];
3931 snprintf (buffer, sizeof (buffer), " %llu" , n);
@@ -53,6 +45,14 @@ DemanglerPrinter &DemanglerPrinter::operator<<(long long n) & {
5345 return *this ;
5446}
5547
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+
5656std::string Demangle::genericParameterName (uint64_t depth, uint64_t index) {
5757 DemanglerPrinter name;
5858 do {
You can’t perform that action at this time.
0 commit comments