[bpf] fix dwarf elf relocs and line numbers
authorAlexei Starovoitov <alexei.starovoitov@gmail.com>
Mon, 21 Nov 2016 06:21:23 +0000 (06:21 +0000)
committerAlexei Starovoitov <alexei.starovoitov@gmail.com>
Mon, 21 Nov 2016 06:21:23 +0000 (06:21 +0000)
commit7ab125dbf344e2343ce3fd66bc5496635a1a6f42
treed6f8e86069f3d02ada5e9c979350425651d918e0
parent5e87d5264f1fb7c94aeb9bb893c1247dc0ddb188
[bpf] fix dwarf elf relocs and line numbers

- teach RelocVisitor to recognize bpf relocations
- fix AsmInfo->PointerSize to make sure dwarf is emitted correctly
- add a test for the above

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
llvm-svn: 287521
llvm/include/llvm/Object/RelocVisitor.h
llvm/include/llvm/Support/ELFRelocs/BPF.def
llvm/lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp
llvm/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h
llvm/test/CodeGen/BPF/dwarfdump.ll [new file with mode: 0644]