aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-03-04 04:00:55 +0000
committerRui Ueyama <ruiu@google.com>2014-03-04 04:00:55 +0000
commit9c674e68519af463541058bcb44550f827f0958d (patch)
tree8883fdb879bb93f8a574f6dd2a7dda3f1577b24c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentaf02c1c0038600d41030cdc0d52dbfd05c76653e (diff)
downloadllvm-9c674e68519af463541058bcb44550f827f0958d.zip
llvm-9c674e68519af463541058bcb44550f827f0958d.tar.gz
llvm-9c674e68519af463541058bcb44550f827f0958d.tar.bz2
llvm-objdump: Print x64 unwind info in executable.
The original code does not work correctly on executable files because the code is written in such a way that only object files are assumed to be given to llvm-objdump. Contents of RuntimeFunction are different between executables and objects. In executables, fields in RuntimeFunction have actual addresses to unwind info structures. On the other hand, in object files, the fields have zero value, but instead there are relocations pointing to the fields, so that Linker will fill them at link-time. So, when we are reading an object file, we need to use relocation info to find the location of unwind info. When executable, we should just look at the values in RuntimeFunction. llvm-svn: 202785
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions