Skip to content

Commit

Permalink
Simplify the constructor Bmv2V1ModelDeclarationGenerator
Browse files Browse the repository at this point in the history
Signed-off-by: zzmic <100326374 [email protected]>
  • Loading branch information
zzmic committed Jul 23, 2024
1 parent a8afbec commit f778c51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backends/p4tools/modules/smith/targets/bmv2/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 34,7 @@ using namespace P4::literals;

class Bmv2V1ModelDeclarationGenerator : public DeclarationGenerator {
public:
explicit Bmv2V1ModelDeclarationGenerator(
P4Tools::P4Smith::BMv2::AbstractBMv2SmithTarget &parent)
: DeclarationGenerator(static_cast<P4Tools::P4Smith::SmithTarget &>(parent)) {}
explicit Bmv2V1ModelDeclarationGenerator(SmithTarget &parent) : DeclarationGenerator(parent) {}

IR::ParameterList *genParameterList() override {
IR::IndexedVector<IR::Parameter> params;
Expand Down

0 comments on commit f778c51

Please sign in to comment.