Add -expand-relocs to llvm-readobj

This option expands shown relocations from single line to a dictionary
format:

  Relocation {
    Offset: 0x4
    Type: R_386_32 (1)
    Symbol: sym
    Info: 0x0
  }

llvm-svn: 179359
This commit is contained in:
Nico Rieck
2013-04-12 04:01:52 +00:00
parent 9d08f86b95
commit f3f0b79704
6 changed files with 64 additions and 23 deletions

View File

@@ -120,6 +120,10 @@ namespace opts {
// -needed-libs
cl::opt<bool> NeededLibraries("needed-libs",
cl::desc("Display the needed libraries"));
// -expand-relocs
cl::opt<bool> ExpandRelocs("expand-relocs",
cl::desc("Expand each shown relocation to multiple lines"));
} // namespace opts
namespace llvm {