| 71 | } |
| 72 | |
| 73 | static std::string GetTypeName(const char* name) |
| 74 | { |
| 75 | #if !defined(__GNUC__) || defined(NO_CXA_DEMANGLE) |
| 76 | return name; |
| 77 | #else |
| 78 | std::unique_ptr<char, void (*)(void*)> own(abi::__cxa_demangle(name, nullptr, nullptr, nullptr), std::free); |
| 79 | std::string r = own.get(); |
| 80 | return r; |
| 81 | #endif |
| 82 | } |
| 83 | |
| 84 | static inline void OutputTypeName(const char* name) |
| 85 | { |