selftests/bpf: Drop the need for LLVM's llc
authorAndrew Delgadillo <adelg@google.com>
Fri, 11 Dec 2020 00:43:44 +0000 (00:43 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 11 Dec 2020 05:33:27 +0000 (21:33 -0800)
commit89ad7420b25c2b40a4d916f4fd43b9ccacd50500
tree90296430dc4fe52b4b2606b3dc4ed99746a086e3
parenta67079b03165a17f9aceab3dd26b1638af68e0fc
selftests/bpf: Drop the need for LLVM's llc

LLC is meant for compiler development and debugging. Consequently, it
exposes many low level options about its backend. To avoid future bugs
introduced by using the raw LLC tool, use clang directly so that all
appropriate options are passed to the back end.

Additionally, simplify the Makefile by removing the
CLANG_NATIVE_BPF_BUILD_RULE as it is not being use, stop passing
dwarfris attr since elfutils/libdw now supports the bpf backend (which
should work with any recent pahole), and stop passing alu32 since
-mcpu=v3 implies alu32.

Signed-off-by: Andrew Delgadillo <adelg@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20201211004344.3355074-1-adelg@google.com
tools/testing/selftests/bpf/Makefile