Skip to content

Commit

Permalink
Simplify instrCount in AstCFunc
Browse files Browse the repository at this point in the history
Signed-off-by: Bartłomiej Chmiel <[email protected]>
  • Loading branch information
b-chmiel committed Jan 20, 2025
1 parent 93c6ef1 commit a5bfd64
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/V3AstNodeOther.h
Original file line number Diff line number Diff line change
Expand Up @@ -687,9 +687,7 @@ class AstCFunc final : public AstNode {
}
//
void name(const string& name) override { m_name = name; }
int instrCount() const override {
return dpiImportPrototype() ? v3Global.opt.instrCountDpi() : m_cost;
}
int instrCount() const override { return m_cost; }
VBoolOrUnknown isConst() const { return m_isConst; }
void isConst(bool flag) { m_isConst.setTrueOrFalse(flag); }
void isConst(VBoolOrUnknown flag) { m_isConst = flag; }
Expand Down

0 comments on commit a5bfd64

Please sign in to comment.