[llvm] r358443 - Revert r358418: "[llvm-objdump] Simplify PrintHelpMessage() logic"
Alex Lorenz via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 15 13:16:19 PDT 2019
Author: arphaman
Date: Mon Apr 15 13:16:19 2019
New Revision: 358443
URL: http://llvm.org/viewvc/llvm-project?rev=358443&view=rev
Log:
Revert r358418: "[llvm-objdump] Simplify PrintHelpMessage() logic"
This reverts commit r358418 as it broke `test/Object/objdump-export-list`
on Darwin.
Modified:
llvm/trunk/test/tools/llvm-objdump/X86/macho-private-header.test
llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
Modified: llvm/trunk/test/tools/llvm-objdump/X86/macho-private-header.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/X86/macho-private-header.test?rev=358443&r1=358442&r2=358443&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/X86/macho-private-header.test (original)
+++ llvm/trunk/test/tools/llvm-objdump/X86/macho-private-header.test Mon Apr 15 13:16:19 2019
@@ -1,4 +1,4 @@
-// RUN: llvm-objdump -macho -private-header %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
+// RUN: llvm-objdump -private-header %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
CHECK: Mach header
CHECK: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
Modified: llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp?rev=358443&r1=358442&r2=358443&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp Mon Apr 15 13:16:19 2019
@@ -2021,15 +2021,34 @@ int main(int argc, char **argv) {
if (DisassembleAll || PrintSource || PrintLines)
Disassemble = true;
- if (!ArchiveHeaders && !Disassemble && DwarfDumpType == DIDT_Null &&
- !DynamicRelocations && !FileHeaders && !PrivateHeaders && !RawClangAST &&
- !Relocations && !SectionHeaders && !SectionContents && !SymbolTable &&
- !UnwindInfo && !FaultMapSection &&
- !(MachOOpt &&
- (Bind || DataInCode || DylibId || DylibsUsed || ExportsTrie ||
- FirstPrivateHeader || IndirectSymbols || InfoPlist || LazyBind ||
- LinkOptHints || Rebase || ObjcMetaData || UniversalHeaders ||
- WeakBind || !FilterSections.empty()))) {
+ if (!Disassemble
+ && !Relocations
+ && !DynamicRelocations
+ && !SectionHeaders
+ && !SectionContents
+ && !SymbolTable
+ && !UnwindInfo
+ && !PrivateHeaders
+ && !FileHeaders
+ && !FirstPrivateHeader
+ && !ExportsTrie
+ && !Rebase
+ && !Bind
+ && !LazyBind
+ && !WeakBind
+ && !RawClangAST
+ && !(UniversalHeaders && MachOOpt)
+ && !ArchiveHeaders
+ && !(IndirectSymbols && MachOOpt)
+ && !(DataInCode && MachOOpt)
+ && !(LinkOptHints && MachOOpt)
+ && !(InfoPlist && MachOOpt)
+ && !(DylibsUsed && MachOOpt)
+ && !(DylibId && MachOOpt)
+ && !(ObjcMetaData && MachOOpt)
+ && !(!FilterSections.empty() && MachOOpt)
+ && !FaultMapSection
+ && DwarfDumpType == DIDT_Null) {
cl::PrintHelpMessage();
return 2;
}
More information about the llvm-commits
mailing list