OSDN Git Service

[BPF] make test case reloc-btf.ll tolerable for old compilers
authorYonghong Song <yhs@fb.com>
Wed, 20 Feb 2019 00:22:19 +0000 (00:22 +0000)
committerYonghong Song <yhs@fb.com>
Wed, 20 Feb 2019 00:22:19 +0000 (00:22 +0000)
commitbcf1836a443d4b7c48485f6d03c818ea4d60a107
tree5f7ea405a7e2098f3f36afeaa96eff4141bfbc83
parent81e598fa8a3ade57360e1adf8fd10e0b6679e5b9
[BPF] make test case reloc-btf.ll tolerable for old compilers

The test case reloc-btf.ll is generated with an IR containing
spFlags introduced by https://reviews.llvm.org/rL347806.
In the case of BTF backporting, the old compiler may not
have this patch, so this test will fail during
validation.

This patch removed spFlags from IR in the test case
and used the old way for various flags.

Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Yonghong Song <yhs@fb.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354409 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/BPF/reloc-btf.ll