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
This commit is contained in:
Adrian Prantl
2015-07-08 02:04:15 +00:00
parent 7bcdaa6978
commit 54a2768153
4 changed files with 53 additions and 16 deletions

View File

@@ -1,5 +1,3 @@
# RUN: llvm-objdump -macho -section=__data %p/Inputs/bind2.macho-x86_64 | FileCheck %s
# RUN: llvm-objdump -macho -section=__data -raw %p/Inputs/bind2.macho-x86_64 | FileCheck --check-prefix=RAW %s
# CHECK: bind2.macho-x86_64:
# RAW-NOT: bind2.macho-x86_64: