[llvm-objdump][XCOFF][AIX] Implement -r option
authorjasonliu <jasonliu.development@gmail.com>
Fri, 27 Mar 2020 16:02:27 +0000 (16:02 +0000)
committerjasonliu <jasonliu.development@gmail.com>
Fri, 27 Mar 2020 16:05:42 +0000 (16:05 +0000)
commitd60d7d69de9b559beae6cce1e3df79240e0fddf1
tree62b8acb4e144a27bfe5e72240e52504b691dcde2
parentbd722ef63f18ee672d60358113431f9bb5c55380
[llvm-objdump][XCOFF][AIX] Implement -r option

Summary:
Implement several XCOFF hooks to get '-r' option working for llvm-objdump -r.

Reviewer: DiggerLin, hubert.reinterpretcast, jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D75131
llvm/include/llvm/BinaryFormat/XCOFF.h
llvm/include/llvm/Object/XCOFFObjectFile.h
llvm/lib/BinaryFormat/XCOFF.cpp
llvm/lib/Object/XCOFFObjectFile.cpp
llvm/test/CodeGen/PowerPC/aix-xcoff-reloc.ll
llvm/test/tools/llvm-objdump/XCOFF/disassemble-all.test
llvm/test/tools/llvm-objdump/XCOFF/print-reloc.test [new file with mode: 0644]
llvm/tools/llvm-objdump/CMakeLists.txt
llvm/tools/llvm-objdump/XCOFFDump.cpp [new file with mode: 0644]
llvm/tools/llvm-objdump/llvm-objdump.cpp
llvm/tools/llvm-objdump/llvm-objdump.h