@@ -850,33 +850,7 @@ _swift_isThunkFunction(const char *mangledName) {
850850 return ctx.isThunkSymbol (mangledName);
851851}
852852
853- // / Try to demangle a symbol.
854- // /
855- // / Unlike other entry points that do this, we try both Swift and C++ here.
856- // /
857- // / @param mangledName is the symbol name to be demangled.
858- // / @param mangledNameLength is the length of this name.
859- // / @param outputBuffer is a pointer to a buffer in which to place the result.
860- // / @param outputBufferSize points to a variable that contains the size of the
861- // / output buffer.
862- // / @param status returns the status codes defined in the C++ ABI.
863- // /
864- // / If outputBuffer is nullptr, the function will allocate memory for the
865- // / result using malloc(). In this case, outputBufferSize may be nullptr;
866- // / if it is *not* nullptr, it will be set to the size of buffer that was
867- // / allocated. This is not necessarily the length of the string (it may be
868- // / somewhat higher).
869- // /
870- // / Otherwise, the result will be written into the output buffer, and the
871- // / size of the result will be written into outputBufferSize. If the buffer
872- // / is too small, the result will be truncated, but outputBufferSize will
873- // / still be set to the number of bytes that would have been required to
874- // / copy out the full result (including a trailing NUL).
875- // /
876- // / The unusual behaviour here is a consequence of the way the C++ ABI's
877- // / demangling function works.
878- // /
879- // / @returns a pointer to the output if demangling was successful.
853+ // Try to demangle a symbol.
880854SWIFT_RUNTIME_STDLIB_SPI char *
881855_swift_backtrace_demangle (const char *mangledName,
882856 size_t mangledNameLength,
0 commit comments