Changes in src/CodeGen/OperatorTable.cc [bff227f:5809461]
- File:
-
- 1 edited
-
src/CodeGen/OperatorTable.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/OperatorTable.cc
rbff227f r5809461 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Dec 13 14:33:05 201613 // Update Count : 1 012 // Last Modified On : Sat Jul 15 17:12:22 2017 13 // Update Count : 15 14 14 // 15 15 … … 19 19 20 20 #include "OperatorTable.h" 21 #include "Common/utility.h" 21 22 22 23 namespace CodeGen { … … 36 37 { "++?", "++", "_operator_preincr", OT_PREFIXASSIGN }, 37 38 { "--?", "--", "_operator_predecr", OT_PREFIXASSIGN }, 39 { "?\\?", "\\", "_operator_exponential", OT_INFIX }, 38 40 { "?*?", "*", "_operator_multiply", OT_INFIX }, 39 41 { "?/?", "/", "_operator_divide", OT_INFIX }, … … 53 55 { "?|?", "|", "_operator_bitor", OT_INFIX }, 54 56 { "?=?", "=", "_operator_assign", OT_INFIXASSIGN }, 57 { "?\\=?", "\\=", "_operator_expassign", OT_INFIXASSIGN }, 55 58 { "?*=?", "*=", "_operator_multassign", OT_INFIXASSIGN }, 56 59 { "?/=?", "/=", "_operator_divassign", OT_INFIXASSIGN }, … … 63 66 { "?^=?", "^=", "_operator_bitxorassign", OT_INFIXASSIGN }, 64 67 { "?|=?", "|=", "_operator_bitorassign", OT_INFIXASSIGN }, 65 { "&&", "&&", "&&", OT_LABELADDRESS },66 { "0", "0", "_constant_zero", OT_CONSTANT },67 { "1", "1", "_constant_one", OT_CONSTANT }68 68 }; 69 69 … … 84 84 initialize(); 85 85 } // if 86 86 87 std::map< std::string, OperatorInfo >::const_iterator i = table.find( funcName ); 87 88 if ( i == table.end() ) { 89 if ( isPrefix( funcName, "?`" ) ) { 90 // handle literal suffixes, which are user-defined postfix operators 91 info.inputName = funcName; 92 info.symbol = funcName.substr(2); 93 info.outputName = toString( "__operator_literal_", info.symbol ); 94 info.type = OT_POSTFIX; 95 return true; 96 } 88 97 return false; 89 98 } else {
Note:
See TracChangeset
for help on using the changeset viewer.