[libcxx-commits] [libcxxabi] 85bf221 - Fix for OutputStream->OutputBuffer rename

David Blaikie via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 21 20:14:27 PDT 2021


Author: David Blaikie
Date: 2021-10-21T20:14:04-07:00
New Revision: 85bf221f204eafc1142a064f1650ffa9d9e03dad

URL: https://github.com/llvm/llvm-project/commit/85bf221f204eafc1142a064f1650ffa9d9e03dad
DIFF: https://github.com/llvm/llvm-project/commit/85bf221f204eafc1142a064f1650ffa9d9e03dad.diff

LOG: Fix for OutputStream->OutputBuffer rename

Added: 
    

Modified: 
    libcxxabi/src/cxa_demangle.cpp

Removed: 
    


################################################################################
diff  --git a/libcxxabi/src/cxa_demangle.cpp b/libcxxabi/src/cxa_demangle.cpp
index 6f46a9453148..4c2cbd94905f 100644
--- a/libcxxabi/src/cxa_demangle.cpp
+++ b/libcxxabi/src/cxa_demangle.cpp
@@ -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)


        


More information about the libcxx-commits mailing list