On WIDTH warnings, show variable name causing error.

This commit is contained in:
Wilson Snyder
2009-07-09 17:39:24 -04:00
parent 8174c1ad02
commit 6835aecdce
15 changed files with 43 additions and 35 deletions
+5
View File
@@ -176,6 +176,11 @@ string AstNode::prettyName(const string& namein) {
return pretty;
}
string AstNode::prettyTypeName() const {
if (name()=="") return typeName();
return string(typeName())+" '"+prettyName()+"'";
}
int AstNode::widthPow2() const {
// I.e. width 30 returns 32, width 32 returns 32.
uint32_t width = this->width();