summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2017-06-20 21:00:25 +0000
committerKevin Enderby <enderby@apple.com>2017-06-20 21:00:25 +0000
commit30cf2e87ba805684b1539d01a02da26900f91d1a (patch)
treebf7917157b9e2f201e137a1888c200dd8204c59d /llvm/tools/llvm-objdump
parent5984426f91282bdca4f4bb6552bbc4d3841ad32d (diff)
downloadbcm5719-llvm-30cf2e87ba805684b1539d01a02da26900f91d1a.tar.gz
bcm5719-llvm-30cf2e87ba805684b1539d01a02da26900f91d1a.zip
Change llvm-objdump with Mach-O files and the -info-plist option with the
-no-leading-headers option so that it does not print the leading header. rdar://27378808 llvm-svn: 305849
Diffstat (limited to 'llvm/tools/llvm-objdump')
-rw-r--r--llvm/tools/llvm-objdump/MachODump.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objdump/MachODump.cpp b/llvm/tools/llvm-objdump/MachODump.cpp
index 22b9869fe92..99d2dbd3017 100644
--- a/llvm/tools/llvm-objdump/MachODump.cpp
+++ b/llvm/tools/llvm-objdump/MachODump.cpp
@@ -1135,7 +1135,8 @@ static void DumpInfoPlistSectionContents(StringRef Filename,
DataRefImpl Ref = Section.getRawDataRefImpl();
StringRef SegName = O->getSectionFinalSegmentName(Ref);
if (SegName == "__TEXT" && SectName == "__info_plist") {
- outs() << "Contents of (" << SegName << "," << SectName << ") section\n";
+ if (!NoLeadingHeaders)
+ outs() << "Contents of (" << SegName << "," << SectName << ") section\n";
StringRef BytesStr;
Section.getContents(BytesStr);
const char *sect = reinterpret_cast<const char *>(BytesStr.data());
OpenPOWER on IntegriCloud