1.1 --- a/src/share/vm/adlc/output_h.cpp Thu Apr 04 21:15:43 2013 -0700 1.2 +++ b/src/share/vm/adlc/output_h.cpp Fri Apr 05 11:09:43 2013 +0200 1.3 @@ -2069,9 +2069,21 @@ 1.4 void closing() { fprintf(_cpp, " _LAST_MACH_OPER\n"); 1.5 OutputMap::closing(); 1.6 } 1.7 - void map(OpClassForm &opc) { fprintf(_cpp, " %s", _AD.machOperEnum(opc._ident) ); } 1.8 - void map(OperandForm &oper) { fprintf(_cpp, " %s", _AD.machOperEnum(oper._ident) ); } 1.9 - void map(char *name) { fprintf(_cpp, " %s", _AD.machOperEnum(name)); } 1.10 + void map(OpClassForm &opc) { 1.11 + const char* opc_ident_to_upper = _AD.machOperEnum(opc._ident); 1.12 + fprintf(_cpp, " %s", opc_ident_to_upper); 1.13 + delete[] opc_ident_to_upper; 1.14 + } 1.15 + void map(OperandForm &oper) { 1.16 + const char* oper_ident_to_upper = _AD.machOperEnum(oper._ident); 1.17 + fprintf(_cpp, " %s", oper_ident_to_upper); 1.18 + delete[] oper_ident_to_upper; 1.19 + } 1.20 + void map(char *name) { 1.21 + const char* name_to_upper = _AD.machOperEnum(name); 1.22 + fprintf(_cpp, " %s", name_to_upper); 1.23 + delete[] name_to_upper; 1.24 + } 1.25 1.26 bool do_instructions() { return false; } 1.27 void map(InstructForm &inst){ assert( false, "ShouldNotCallThis()"); }