Skip to content

Commit

Permalink
fix compilation error with ENABLE_TOFINO=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Wang committed Oct 17, 2024
1 parent 6acd11c commit d3124f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backends/common/psaProgramStructure.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ limitations under the License.

namespace P4 {

enum psa_gress_t {
INGRESS,
EGRESS,
};

enum block_t {
PARSER,
PIPELINE,
Expand All @@ -31,7 +36,7 @@ enum block_t {
class PsaProgramStructure : public PortableProgramStructure {
public:
/// Architecture related information.
ordered_map<const IR::Node *, std::pair<gress_t, block_t>> block_type;
ordered_map<const IR::Node *, std::pair<psa_gress_t, block_t>> block_type;

public:
PsaProgramStructure(P4::ReferenceMap *refMap, P4::TypeMap *typeMap)
Expand Down

0 comments on commit d3124f5

Please sign in to comment.