diff options
author | Kevin Enderby <enderby@apple.com> | 2015-01-31 00:37:11 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2015-01-31 00:37:11 +0000 |
commit | f6d258537ddbe3dbbd59e7333d31b15bcdd87a20 (patch) | |
tree | b65c31d2d0b093ce3e10f196c92a5d960cc7b3e8 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 295596a0a7981a5ebb045b84dd99a6127d1ba402 (diff) | |
download | llvm-f6d258537ddbe3dbbd59e7333d31b15bcdd87a20.zip llvm-f6d258537ddbe3dbbd59e7333d31b15bcdd87a20.tar.gz llvm-f6d258537ddbe3dbbd59e7333d31b15bcdd87a20.tar.bz2 |
Add the -section option to llvm-objdump used with -macho that takes the argument
segname,sectname to specify a Mach-O section to print. The printing is based on
the section type or section attributes.
The printing of the module initialization and termination section types is printed
with this change. Printing of other section types will be added next.
llvm-svn: 227649
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index 4935f98..6e62aaa 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -906,7 +906,8 @@ int main(int argc, char **argv) { && !(ArchiveHeaders && MachOOpt) && !(IndirectSymbols && MachOOpt) && !(DataInCode && MachOOpt) - && !(LinkOptHints && MachOOpt)) { + && !(LinkOptHints && MachOOpt) + && !(DumpSections.size() != 0 && MachOOpt)) { cl::PrintHelpMessage(); return 2; } |