Introduce SWIFT_STDLIB_HAS_TYPE_PRINTING flag to remove the ability to print types at runtime (to save codesize) (#40649)

This commit is contained in:
Kuba (Brecka) Mracek
2021-12-21 17:47:54 -08:00
committed by GitHub
parent 4405620aa6
commit 663a6fb771
11 changed files with 43 additions and 3 deletions

View File

@@ -14,6 +14,8 @@
//
//===----------------------------------------------------------------------===//
#if SWIFT_STDLIB_HAS_TYPE_PRINTING
#include "swift/Basic/STLExtras.h"
#include "swift/Demangling/Demangle.h"
#include "swift/AST/Ownership.h"
@@ -3093,3 +3095,5 @@ std::string Demangle::nodeToString(NodePointer root,
return NodePrinter(options).printRoot(root);
}
#endif