[llvm] 5922d36 - [MC][BPF] Add bpf guard for MC test data-section-prefix.ll

Yonghong Song via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 27 20:02:05 PST 2022


Author: Yonghong Song
Date: 2022-12-27T20:01:26-08:00
New Revision: 5922d361229430a373e007a8e82ad69c7186d56d

URL: https://github.com/llvm/llvm-project/commit/5922d361229430a373e007a8e82ad69c7186d56d
DIFF: https://github.com/llvm/llvm-project/commit/5922d361229430a373e007a8e82ad69c7186d56d.diff

LOG: [MC][BPF] Add bpf guard for MC test data-section-prefix.ll

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.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/ELF/data-section-prefix.ll b/llvm/test/MC/ELF/data-section-prefix.ll
index 5a130009671a9..ca147035b419a 100644
--- a/llvm/test/MC/ELF/data-section-prefix.ll
+++ b/llvm/test/MC/ELF/data-section-prefix.ll
@@ -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


        


More information about the llvm-commits mailing list