Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
Fix build failures (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Budiu committed Sep 8, 2018
1 parent fe3f62b commit 658eb76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -51,6 +51,6 @@ set(XDP_DRIVER ${CMAKE_CURRENT_SOURCE_DIR}/run-p4c-xdp.sh)

# This file will not run the full tests, but it will attempt to compile the p4 files down to C
set (XDP_TEST_SUITES
"${CMAKE_CURRENT_SOURCE_DIR}/tests/xdp*.p4"
"${CMAKE_CURRENT_SOURCE_DIR}/tests/*.p4"
)
p4c_add_tests("xdp" ${XDP_DRIVER} ${XDP_TEST_SUITES} "")
2 changes: 1 addition & 1 deletion xdpBackend.cpp
Expand Up @@ -32,7 +32,7 @@ void run_xdp_backend(const EbpfOptions& options, const IR::ToplevelBlock* toplev

auto main = toplevel->getMain();
if (main == nullptr) {
::error("Could not locate top-level block; is there a %1% module?", IR::P4Program::main);
::warning("Could not locate top-level block; is there a %1% module?", IR::P4Program::main);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion xdpProgram.cpp
Expand Up @@ -79,7 +79,7 @@ bool XDPProgram::build() {
}

void XDPProgram::emitTypes(EBPF::CodeBuilder* builder) {
for (auto d : program->declarations) {
for (auto d : program->objects) {
if (!d->is<IR::Type>()) continue;

if (d->is<IR::IContainer>() || d->is<IR::Type_Extern>() ||
Expand Down

0 comments on commit 658eb76

Please sign in to comment.