1 //===--- Demangle.h ---------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
13 /// This is a llvm local version of __cxa_demangle. Other than the name and
14 /// being in the llvm namespace it is identical.
16 /// The mangled_name is demangled into buf and returned. If the buffer is not
17 /// large enough, realloc is used to expand it.
19 /// The *status will be set to
22 /// invalid_mangled_name: -2
23 /// memory_alloc_failure: -1
26 char *itaniumDemangle(const char *mangled_name, char *buf, size_t *n,