6771309: debugging AD files is difficult without #line directives in generated code

More and better #line and #define directives in the generated code; ADLC itself accepts #line directives

Reviewed-by: never, kvn
This commit is contained in:
John R Rose 2008-12-09 12:41:26 -08:00
parent e50f766540
commit 67464baa7a
10 changed files with 255 additions and 54 deletions

View file

@ -1102,10 +1102,7 @@ bool equivalent_predicates( const InstructForm *instr1, const InstructForm *inst
}
if( pred1 != NULL && pred2 != NULL ) {
// compare the predicates
const char *str1 = pred1->_pred;
const char *str2 = pred2->_pred;
if( (str1 == NULL && str2 == NULL)
|| (str1 != NULL && str2 != NULL && strcmp(str1,str2) == 0) ) {
if (ADLParser::equivalent_expressions(pred1->_pred, pred2->_pred)) {
return true;
}
}