Changeset bc3127d for src/CodeGen
- Timestamp:
- Sep 1, 2017, 4:26:14 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:
- 5809461, ba2a68b
- Parents:
- 78a0b88
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/OperatorTable.cc
r78a0b88 rbc3127d 19 19 20 20 #include "OperatorTable.h" 21 #include "Common/utility.h" 21 22 22 23 namespace CodeGen { … … 65 66 { "?^=?", "^=", "_operator_bitxorassign", OT_INFIXASSIGN }, 66 67 { "?|=?", "|=", "_operator_bitorassign", OT_INFIXASSIGN }, 67 { "&&", "&&", "&&", OT_LABELADDRESS }, 68 { "0", "0", "_constant_zero", OT_CONSTANT }, 69 { "1", "1", "_constant_one", OT_CONSTANT } 68 { "&&", "&&", "&&", OT_LABELADDRESS } 70 69 }; 71 70 … … 86 85 initialize(); 87 86 } // if 87 88 88 std::map< std::string, OperatorInfo >::const_iterator i = table.find( funcName ); 89 89 if ( i == table.end() ) { 90 if ( isPrefix( funcName, "?`" ) ) { 91 // handle literal suffixes, which are user-defined postfix operators 92 info.inputName = funcName; 93 info.symbol = funcName.substr(2); 94 info.outputName = toString( "__operator_literal_", info.symbol ); 95 info.type = OT_POSTFIX; 96 return true; 97 } 90 98 return false; 91 99 } else {
Note: See TracChangeset
for help on using the changeset viewer.