mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
committed by
GitHub
parent
4405620aa6
commit
663a6fb771
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user