Fix for OutputStream->OutputBuffer rename

This commit is contained in:
David Blaikie 2021-10-21 20:14:04 -07:00
parent ddbf196194
commit 85bf221f20
1 changed files with 6 additions and 6 deletions

View File

@ -342,21 +342,21 @@ __cxa_demangle(const char *MangledName, char *Buf, size_t *N, int *Status) {
int InternalStatus = demangle_success;
Demangler Parser(MangledName, MangledName + std::strlen(MangledName));
OutputBuffer S;
OutputBuffer O;
Node *AST = Parser.parse();
if (AST == nullptr)
InternalStatus = demangle_invalid_mangled_name;
else if (!initializeOutputBuffer(Buf, N, S, 1024))
else if (!initializeOutputBuffer(Buf, N, O, 1024))
InternalStatus = demangle_memory_alloc_failure;
else {
assert(Parser.ForwardTemplateRefs.empty());
AST->print(S);
S += '\0';
AST->print(O);
O += '\0';
if (N != nullptr)
*N = S.getCurrentPosition();
Buf = S.getBuffer();
*N = O.getCurrentPosition();
Buf = O.getBuffer();
}
if (Status)