Implement Utility::DemangleSymbolName on Windows.

Fixes #5010
This commit is contained in:
Gunnar Beutner 2013-11-05 20:25:26 +01:00
parent 27f527d0ad
commit 5e68746128
1 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,11 @@ String Utility::DemangleSymbolName(const String& sym)
result = String(realname); result = String(realname);
free(realname); free(realname);
} }
#else /* _MSC_VER */
CHAR output[256];
if (UnDecorateSymbolName(sym.CStr(), output, sizeof(output), UNDNAME_COMPLETE) > 0)
result = output;
#endif /* _MSC_VER */ #endif /* _MSC_VER */
return result; return result;