Changeset 90cac45


Ignore:
Timestamp:
Aug 15, 2018, 1:59:38 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
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
Message:

Add options parameter to cforall_demangle

Location:
src/SymTab
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Demangle.cc

    r5e44ac2 r90cac45  
    525525
    526526extern "C" {
    527         char * cforall_demangle(const char * mangleName) {
     527        char * cforall_demangle(const char * mangleName, int option __attribute__((unused))) {
    528528                const std::string & demangleName = SymTab::Mangler::demangle(mangleName);
    529529                return strdup(demangleName.c_str());
  • src/SymTab/Mangler.h

    r5e44ac2 r90cac45  
    6969
    7070extern "C" {
    71         char * cforall_demangle(const char *);
     71        char * cforall_demangle(const char *, int);
    7272}
    7373
  • src/SymTab/demangler.cc

    r5e44ac2 r90cac45  
    55
    66void f(const std::string & mangleName) {
    7         char * demangleName = cforall_demangle(mangleName.c_str());
     7        char * demangleName = cforall_demangle(mangleName.c_str(), 0);
    88        cout << mangleName << " => " << std::flush << demangleName << endl;
    99        free(demangleName);
Note: See TracChangeset for help on using the changeset viewer.