Debug: Add @ to end of dtype to avoid miscutting

This commit is contained in:
Wilson Snyder 2012-05-07 19:01:45 -04:00
parent 0c1e184cb7
commit ff69bdbc6f
1 changed files with 2 additions and 2 deletions

View File

@ -607,8 +607,8 @@ void AstNode::dump(ostream& str) {
if (user4p()) str<<" u4="<<(void*)user4p();
if (user5p()) str<<" u5="<<(void*)user5p();
if (hasDType()) {
if (dtypep()==this) str<<" @dt="<<"this";
else str<<" @dt="<<(void*)dtypep();
if (dtypep()==this) str<<" @dt="<<"this@";
else str<<" @dt="<<(void*)dtypep()<<"@"; // Final @ so less likely to by accident think it's nodep
if (AstNodeDType* dtp = dtypep()) {
dtp->dumpSmall(str);
}