Internals: Ast classes create declRange().

This commit is contained in:
Wilson Snyder
2013-01-17 20:41:45 -05:00
parent bbeb382cbb
commit de4016dcff
4 changed files with 9 additions and 11 deletions
+2 -2
View File
@@ -746,11 +746,11 @@ void AstNodeDType::dumpSmall(ostream& str) {
void AstNodeArrayDType::dumpSmall(ostream& str) {
this->AstNodeDType::dumpSmall(str);
if (castPackArrayDType()) str<<"p"; else str<<"u";
str<<"["<<msb()<<":"<<lsb()<<"]";
str<<"["<<declRange().left()<<":"<<declRange().right()<<"]";
}
void AstNodeArrayDType::dump(ostream& str) {
this->AstNodeDType::dump(str);
str<<" ["<<msb()<<":"<<lsb()<<"]";
str<<" ["<<declRange().left()<<":"<<declRange().right()<<"]";
}
void AstNodeModule::dump(ostream& str) {
this->AstNode::dump(str);