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

@ -140,7 +140,7 @@ bool MatchList::search(const char *opc, const char *res, const char *lch,
if ((rch == _rchild) || (rch && _rchild && !strcmp(rch, _rchild))) {
char * predStr = get_pred();
char * prStr = pr?pr->_pred:NULL;
if ((prStr == predStr) || (prStr && predStr && !strcmp(prStr, predStr))) {
if (ADLParser::equivalent_expressions(prStr, predStr)) {
return true;
}
}