Ignore:
Timestamp:
Aug 2, 2018, 5:15:21 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:
c20fafd
Parents:
4285544e
Message:

Minor updates to name mangling to eliminate overlaps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/ManglerCommon.cc

    r4285544e r7804e2a  
    6464
    6565                        const std::map<int, std::string> qualifiers = {
    66                                 { Type::Const, "C" },
     66                                { Type::Const, "K" },
    6767                                { Type::Volatile, "V" },
    6868                                { Type::Atomic, "A" }, // A = Atomic, A0 = Array and forall parameter...
    69                                 { Type::Mutex, "M" },
     69                                { Type::Mutex, "X" },
    7070                                { Type::Lvalue, "L" },
    7171                        };
    7272
    73                         const std::string voidType = "v";
     73                        const std::string void_t = "v";
    7474                        const std::string zero = "Z";
    7575                        const std::string one = "O";
     
    8282                        const std::string qualifiedTypeEnd = "E";
    8383
     84                        const std::string struct_t = "S";
     85                        const std::string union_t = "U";
     86                        const std::string enum_t = "M";
     87
    8488                        const std::string autogen = "autogen__";
    8589                        const std::string intrinsic = "intrinsic__";
Note: See TracChangeset for help on using the changeset viewer.