Skip to content

Commit

Permalink
[MC][BPF] Add bpf guard for MC test data-section-prefix.ll
Browse files Browse the repository at this point in the history
Commit f27c490 ("MC: Add .data. and .rodata. prefixes to MCContext
section classification") added a test assuming bpf target. But it
is possible bpf target is not configured in the clang build.
Let us add explicit bpf-target requirement for the test
so the test can be ingored properly for clang build without enabling
bpf target.
  • Loading branch information
yonghong-song committed Dec 28, 2022
1 parent 490c77e commit 5922d36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/test/MC/ELF/data-section-prefix.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
; REQUIRES: bpf-registered-target

; RUN: llc -filetype obj -o - %s | llvm-readobj --sections - | FileCheck --check-prefix="SECTIONS" %s
;
; SECTIONS: Name: .data.A
Expand Down

0 comments on commit 5922d36

Please sign in to comment.