llvm-objdump: Replace the -macho -raw option with a generic -raw-clang-ast
authorAdrian Prantl <aprantl@apple.com>
Wed, 8 Jul 2015 02:04:15 +0000 (02:04 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 8 Jul 2015 02:04:15 +0000 (02:04 +0000)
commit54a2768153deeac09a643854d230e7d4c60af12a
tree93a5dcef2d3d6e8074537dc996f27aae89526ba5
parent7bcdaa697859e291893c518cda65b947a43a7205
llvm-objdump: Replace the -macho -raw option with a generic -raw-clang-ast
option that works with all object container formats.
Now that clang modules/PCH are object containers this option is useful to
to construct pipes like

  llvm-objdump -raw-clang-ast foo.pcm | llvm-bcanalyzer -

to inspect the AST contents in a PCH container.
Will be tested via clang.

Belatedly addresses review feedback for r233390.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241659 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/macho-sections.test
tools/llvm-objdump/MachODump.cpp
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-objdump/llvm-objdump.h