Fix for OutputStream->OutputBuffer rename
This commit is contained in:
parent
ddbf196194
commit
85bf221f20
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue