Changes in src/CodeGen/OperatorTable.cc [5809461:bff227f]
- File:
-
- 1 edited
-
src/CodeGen/OperatorTable.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/OperatorTable.cc
r5809461 rbff227f 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jul 15 17:12:22 201713 // Update Count : 1 512 // Last Modified On : Tue Dec 13 14:33:05 2016 13 // Update Count : 10 14 14 // 15 15 … … 19 19 20 20 #include "OperatorTable.h" 21 #include "Common/utility.h"22 21 23 22 namespace CodeGen { … … 37 36 { "++?", "++", "_operator_preincr", OT_PREFIXASSIGN }, 38 37 { "--?", "--", "_operator_predecr", OT_PREFIXASSIGN }, 39 { "?\\?", "\\", "_operator_exponential", OT_INFIX },40 38 { "?*?", "*", "_operator_multiply", OT_INFIX }, 41 39 { "?/?", "/", "_operator_divide", OT_INFIX }, … … 55 53 { "?|?", "|", "_operator_bitor", OT_INFIX }, 56 54 { "?=?", "=", "_operator_assign", OT_INFIXASSIGN }, 57 { "?\\=?", "\\=", "_operator_expassign", OT_INFIXASSIGN },58 55 { "?*=?", "*=", "_operator_multassign", OT_INFIXASSIGN }, 59 56 { "?/=?", "/=", "_operator_divassign", OT_INFIXASSIGN }, … … 66 63 { "?^=?", "^=", "_operator_bitxorassign", OT_INFIXASSIGN }, 67 64 { "?|=?", "|=", "_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 87 86 std::map< std::string, OperatorInfo >::const_iterator i = table.find( funcName ); 88 87 if ( i == table.end() ) { 89 if ( isPrefix( funcName, "?`" ) ) {90 // handle literal suffixes, which are user-defined postfix operators91 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 }97 88 return false; 98 89 } else {
Note:
See TracChangeset
for help on using the changeset viewer.