[MC][BPF] Add bpf guard for MC test data-section-prefix.ll
authorYonghong Song <yhs@fb.com>
Wed, 28 Dec 2022 03:57:30 +0000 (19:57 -0800)
committerYonghong Song <yhs@fb.com>
Wed, 28 Dec 2022 04:01:26 +0000 (20:01 -0800)
Commit f27c4903c43b ("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.

llvm/test/MC/ELF/data-section-prefix.ll

index 5a13000..ca14703 100644 (file)
@@ -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