forked from github/verilator
Fix template brackets to avoid C++11, bug1617.
This commit is contained in:
parent
d65d8fda54
commit
809a6de9cd
@ -274,7 +274,7 @@ AstVar::VlArgTypeRecursed AstVar::vlArgTypeRecurse(bool forFunc, const AstNodeDT
|
|||||||
if (!sub.m_osuffix.empty() || !sub.m_oref.empty()) {
|
if (!sub.m_osuffix.empty() || !sub.m_oref.empty()) {
|
||||||
out += " " + sub.m_osuffix + sub.m_oref;
|
out += " " + sub.m_osuffix + sub.m_oref;
|
||||||
}
|
}
|
||||||
out += ">";
|
out += "> ";
|
||||||
VlArgTypeRecursed info;
|
VlArgTypeRecursed info;
|
||||||
info.m_oprefix = out;
|
info.m_oprefix = out;
|
||||||
return info;
|
return info;
|
||||||
@ -285,7 +285,7 @@ AstVar::VlArgTypeRecursed AstVar::vlArgTypeRecurse(bool forFunc, const AstNodeDT
|
|||||||
if (!sub.m_osuffix.empty() || !sub.m_oref.empty()) {
|
if (!sub.m_osuffix.empty() || !sub.m_oref.empty()) {
|
||||||
out += " " + sub.m_osuffix + sub.m_oref;
|
out += " " + sub.m_osuffix + sub.m_oref;
|
||||||
}
|
}
|
||||||
out += ">";
|
out += "> ";
|
||||||
info.m_oprefix = out;
|
info.m_oprefix = out;
|
||||||
return info;
|
return info;
|
||||||
} else if (const AstUnpackArrayDType* adtypep = VN_CAST_CONST(dtypep, UnpackArrayDType)) {
|
} else if (const AstUnpackArrayDType* adtypep = VN_CAST_CONST(dtypep, UnpackArrayDType)) {
|
||||||
@ -325,7 +325,7 @@ AstVar::VlArgTypeRecursed AstVar::vlArgTypeRecurse(bool forFunc, const AstNodeDT
|
|||||||
otype += "QData"+bitvec;
|
otype += "QData"+bitvec;
|
||||||
} else if (dtypep->isWide()) {
|
} else if (dtypep->isWide()) {
|
||||||
if (arrayed) {
|
if (arrayed) {
|
||||||
otype += "VlWide<"+cvtToStr(dtypep->widthWords())+">";
|
otype += "VlWide<"+cvtToStr(dtypep->widthWords())+"> ";
|
||||||
} else {
|
} else {
|
||||||
otype += "WData"+bitvec; // []'s added later
|
otype += "WData"+bitvec; // []'s added later
|
||||||
oarray += "["+cvtToStr(dtypep->widthWords())+"]";
|
oarray += "["+cvtToStr(dtypep->widthWords())+"]";
|
||||||
|
Loading…
Reference in New Issue
Block a user