Print more information about relocations.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 11 Apr 2013 16:31:37 +0000 (16:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 11 Apr 2013 16:31:37 +0000 (16:31 +0000)
commit708a44d4644dc0bbc9c0b1b7de7f539a117fe813
tree45497f3515902462deb97e5b5eed4bc26559ef0c
parent9f3938e2714ab75fa59ea5f5f81b373d147e261b
Print more information about relocations.

With this patch llvm-readobj now prints if a relocation is pcrel, its length,
if it is extern and if it is scattered.

It also refactors the code a bit to use bit fields instead of shifts and
masks all over the place.

llvm-svn: 179294
llvm/include/llvm/Object/MachO.h
llvm/lib/Object/MachOObjectFile.cpp
llvm/test/tools/llvm-readobj/relocations.test
llvm/test/tools/llvm-readobj/sections-ext.test
llvm/tools/llvm-readobj/MachODumper.cpp