I am using the following commands to compile a source file(hello.c) into an executable file(hello), and expect to dump out the DWARF info of the executable file. However, there is no DWARF info no matter using "readelf -wi hello" or "llvm-dwarfdump hello". I am wondering where went wrong.
clang-3.5 -gdwarf-4 -O0 -emit-llvm -c hello.c -o hello.bc
llc -dwarf-version=4 -O0 -filetype=obj hello.bc
gcc hello.o -o hello