|
24 | 24 | #include <cassert>
|
25 | 25 | #include <cstdint>
|
26 | 26 | #include "llvm/ADT/StringRef.h"
|
27 |
| -#include "swift/Runtime/Config.h" |
28 | 27 | #include "swift/Demangling/NamespaceMacros.h"
|
29 | 28 |
|
30 | 29 | namespace llvm {
|
@@ -645,30 +644,4 @@ SWIFT_END_INLINE_NAMESPACE
|
645 | 644 | } // end namespace Demangle
|
646 | 645 | } // end namespace swift
|
647 | 646 |
|
648 |
| -// NB: This function is not used directly in the Swift codebase, but is |
649 |
| -// exported for Xcode support and is used by the sanitizers. Please coordinate |
650 |
| -// before changing. |
651 |
| -// |
652 |
| -/// Demangles a Swift symbol name. |
653 |
| -/// |
654 |
| -/// \param mangledName is the symbol name that needs to be demangled. |
655 |
| -/// \param mangledNameLength is the length of the string that should be |
656 |
| -/// demangled. |
657 |
| -/// \param outputBuffer is the user provided buffer where the demangled name |
658 |
| -/// will be placed. If nullptr, a new buffer will be malloced. In that case, |
659 |
| -/// the user of this API is responsible for freeing the returned buffer. |
660 |
| -/// \param outputBufferSize is the size of the output buffer. If the demangled |
661 |
| -/// name does not fit into the outputBuffer, the output will be truncated and |
662 |
| -/// the size will be updated, indicating how large the buffer should be. |
663 |
| -/// \param flags can be used to select the demangling style. TODO: We should |
664 |
| -//// define what these will be. |
665 |
| -/// \returns the demangled name. Returns nullptr if the input String is not a |
666 |
| -/// Swift mangled name. |
667 |
| -SWIFT_RUNTIME_EXPORT |
668 |
| -char *swift_demangle(const char *mangledName, |
669 |
| - size_t mangledNameLength, |
670 |
| - char *outputBuffer, |
671 |
| - size_t *outputBufferSize, |
672 |
| - uint32_t flags); |
673 |
| - |
674 | 647 | #endif // SWIFT_DEMANGLING_DEMANGLE_H
|
0 commit comments