Changeset 90cac45
- Timestamp:
- Aug 15, 2018, 1:59:38 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 4bd3069
- Parents:
- 5e44ac2
- Location:
- src/SymTab
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Demangle.cc
r5e44ac2 r90cac45 525 525 526 526 extern "C" { 527 char * cforall_demangle(const char * mangleName ) {527 char * cforall_demangle(const char * mangleName, int option __attribute__((unused))) { 528 528 const std::string & demangleName = SymTab::Mangler::demangle(mangleName); 529 529 return strdup(demangleName.c_str()); -
src/SymTab/Mangler.h
r5e44ac2 r90cac45 69 69 70 70 extern "C" { 71 char * cforall_demangle(const char * );71 char * cforall_demangle(const char *, int); 72 72 } 73 73 -
src/SymTab/demangler.cc
r5e44ac2 r90cac45 5 5 6 6 void f(const std::string & mangleName) { 7 char * demangleName = cforall_demangle(mangleName.c_str() );7 char * demangleName = cforall_demangle(mangleName.c_str(), 0); 8 8 cout << mangleName << " => " << std::flush << demangleName << endl; 9 9 free(demangleName);
Note: See TracChangeset
for help on using the changeset viewer.