summaryrefslogtreecommitdiff
path: root/third_party/gcc_demangler.c
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-21 12:33:08 -0700
committeralon@honor <none@none>2010-10-21 12:33:08 -0700
commit653032fba001d549f3a9a7b4387eb1fa42600428 (patch)
treec5560b8f897452c37b3f6a78a2a421e83d333d14 /third_party/gcc_demangler.c
parent3ce44a956a248c3c9aabf721ee9a52f92e92fa75 (diff)
gcc_demanger tool
Diffstat (limited to 'third_party/gcc_demangler.c')
-rw-r--r--third_party/gcc_demangler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/gcc_demangler.c b/third_party/gcc_demangler.c
index 69de5e76..aa4880dd 100644
--- a/third_party/gcc_demangler.c
+++ b/third_party/gcc_demangler.c
@@ -4217,10 +4217,10 @@ is_gnu_v3_mangled_dtor (const char *name)
#endif /* IN_GLIBCPP_V3 */
-int main()
+int main(int argc, char **argv)
{
int status;
- printf("*%s*\n", __cxa_demangle("_ZL10d_demanglePKciPj", 0, 0, &status));
+ printf("*%s*\n", __cxa_demangle(argv[1], 0, 0, &status));
return 1;
}