Skip to content

Commit

Permalink
Properly forward declare Transform
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Korobeynikov <[email protected]>
  • Loading branch information
asl committed Nov 26, 2024
1 parent 7c6b06a commit 2fd120b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ir/irutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
#include "lib/big_int_util.h"
#include "lib/source_file.h"

namespace P4 {

class Transform;

namespace P4::IR {
namespace IR {

// Forward-declare some IR classes that are used in function declarations.
class BoolLiteral;
Expand Down Expand Up @@ -128,6 +130,8 @@ const IR::Node *inlineBlock(const Transform &, std::initializer_list<const IR::S
const IR::Node *inlineBlock(const Transform &, const IR::IndexedVector<IR::StatOrDecl> &);
const IR::Node *inlineBlock(const Transform &, IR::IndexedVector<IR::StatOrDecl> &&);

} // namespace P4::IR
} // namespace IR

} // namespace P4

#endif /* IR_IRUTILS_H_ */

0 comments on commit 2fd120b

Please sign in to comment.