mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Refactor to create VCMethod (#3715). No functional change intended.
This commit is contained in:
+4
-3
@@ -506,10 +506,11 @@ class TaskVisitor final : public VNVisitor {
|
||||
refArgOk = true;
|
||||
} else if (AstCMethodHard* const cMethodp = VN_CAST(pinp, CMethodHard)) {
|
||||
if (VN_IS(cMethodp->fromp()->dtypep()->skipRefp(), QueueDType)) {
|
||||
refArgOk = cMethodp->name() == "atWriteAppend"
|
||||
|| cMethodp->name() == "atWriteAppendBack";
|
||||
refArgOk = cMethodp->method() == VCMethod::DYN_AT_WRITE_APPEND
|
||||
|| cMethodp->method() == VCMethod::DYN_AT_WRITE_APPEND_BACK;
|
||||
} else {
|
||||
refArgOk = cMethodp->name() == "at" || cMethodp->name() == "atBack";
|
||||
refArgOk = cMethodp->method() == VCMethod::ARRAY_AT
|
||||
|| cMethodp->method() == VCMethod::ARRAY_AT_BACK;
|
||||
}
|
||||
}
|
||||
if (refArgOk) {
|
||||
|
||||
Reference in New Issue
Block a user