diff options
author | Yonghong Song <yhs@fb.com> | 2018-06-15 15:53:31 +0000 |
---|---|---|
committer | Yonghong Song <yhs@fb.com> | 2018-06-15 15:53:31 +0000 |
commit | 6927cf0c2ae41e607883c453ce81f82bb922ff48 (patch) | |
tree | ca661a33db6b6a5856b6b10afc5e8eebd9dc7eba /llvm/lib/Support/PrettyStackTrace.cpp | |
parent | 18ac8f9f25052ea9ce5ae2dacfc1ff379a013f1d (diff) | |
download | llvm-6927cf0c2ae41e607883c453ce81f82bb922ff48.zip llvm-6927cf0c2ae41e607883c453ce81f82bb922ff48.tar.gz llvm-6927cf0c2ae41e607883c453ce81f82bb922ff48.tar.bz2 |
bpf: recognize target specific option -mattr=dwarfris in clang
The following is the usage example with clang:
bash-4.2$ clang -target bpf -O2 -g -c -Xclang -target-feature -Xclang +dwarfris t.c
bash-4.2$ llvm-objdump -S -d t.o
t.o: file format ELF64-BPF
Disassembly of section .text:
test:
; int test(void) {
0: b7 00 00 00 00 00 00 00 r0 = 0
; return 0;
1: 95 00 00 00 00 00 00 00 exit
bash-4.2$ cat t.c
int test(void) {
return 0;
}
bash-4.2$
Signed-off-by: Yonghong Song <yhs@fb.com>
llvm-svn: 334839
Diffstat (limited to 'llvm/lib/Support/PrettyStackTrace.cpp')
0 files changed, 0 insertions, 0 deletions