Changeset 30f9072 for src/SymTab/Mangler.h
- Timestamp:
- Jul 12, 2017, 1:58:00 PM (7 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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 02d62bb
- Parents:
- 3268a58
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Mangler.h
r3268a58 r30f9072 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Mangler.h -- 7 // Mangler.h -- 8 8 // 9 9 // Author : Richard C. Bilson … … 17 17 #define MANGLER_H 18 18 19 #include <sstream> 20 #include "SynTree/SynTree.h" 21 #include "SynTree/Visitor.h" 19 #include <map> // for map, map<>::value_compare 20 #include <sstream> // for ostringstream 21 #include <string> // for string 22 #include <utility> // for pair 23 24 #include "SynTree/SynTree.h" // for Types 25 #include "SynTree/Visitor.h" // for Visitor, maybeAccept 22 26 23 27 namespace SymTab { … … 48 52 virtual void visit( ZeroType *zeroType ); 49 53 virtual void visit( OneType *oneType ); 50 54 51 55 std::string get_mangleName() { return mangleName.str(); } 52 56 private: … … 58 62 bool mangleOverridable; ///< Specially mangle overridable built-in methods 59 63 bool typeMode; ///< Produce a unique mangled name for a type 60 64 61 65 Mangler( bool mangleOverridable, bool typeMode ); 62 66 Mangler( const Mangler & ); 63 67 64 68 void mangleDecl( DeclarationWithType *declaration ); 65 69 void mangleRef( ReferenceToType *refType, std::string prefix ); 66 70 void mangleGenericRef( ReferenceToType *refType, std::string prefix ); 67 71 68 72 void printQualifiers( Type *type ); 69 73 }; // Mangler
Note: See TracChangeset
for help on using the changeset viewer.