File tree Expand file tree Collapse file tree 2 files changed +10
-29
lines changed
test/tools/llvm-objdump/X86 Expand file tree Collapse file tree 2 files changed +10
-29
lines changed Original file line number Diff line number Diff line change 1
- // RUN: llvm-objdump -private-header %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
1
+ // RUN: llvm-objdump -macho - private-header %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
2
2
3
3
CHECK: Mach header
4
4
CHECK: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
Original file line number Diff line number Diff line change @@ -2021,34 +2021,15 @@ int main(int argc, char **argv) {
2021
2021
if (DisassembleAll || PrintSource || PrintLines)
2022
2022
Disassemble = true ;
2023
2023
2024
- if (!Disassemble
2025
- && !Relocations
2026
- && !DynamicRelocations
2027
- && !SectionHeaders
2028
- && !SectionContents
2029
- && !SymbolTable
2030
- && !UnwindInfo
2031
- && !PrivateHeaders
2032
- && !FileHeaders
2033
- && !FirstPrivateHeader
2034
- && !ExportsTrie
2035
- && !Rebase
2036
- && !Bind
2037
- && !LazyBind
2038
- && !WeakBind
2039
- && !RawClangAST
2040
- && !(UniversalHeaders && MachOOpt)
2041
- && !ArchiveHeaders
2042
- && !(IndirectSymbols && MachOOpt)
2043
- && !(DataInCode && MachOOpt)
2044
- && !(LinkOptHints && MachOOpt)
2045
- && !(InfoPlist && MachOOpt)
2046
- && !(DylibsUsed && MachOOpt)
2047
- && !(DylibId && MachOOpt)
2048
- && !(ObjcMetaData && MachOOpt)
2049
- && !(!FilterSections.empty () && MachOOpt)
2050
- && !FaultMapSection
2051
- && DwarfDumpType == DIDT_Null) {
2024
+ if (!ArchiveHeaders && !Disassemble && DwarfDumpType == DIDT_Null &&
2025
+ !DynamicRelocations && !FileHeaders && !PrivateHeaders && !RawClangAST &&
2026
+ !Relocations && !SectionHeaders && !SectionContents && !SymbolTable &&
2027
+ !UnwindInfo && !FaultMapSection &&
2028
+ !(MachOOpt &&
2029
+ (Bind || DataInCode || DylibId || DylibsUsed || ExportsTrie ||
2030
+ FirstPrivateHeader || IndirectSymbols || InfoPlist || LazyBind ||
2031
+ LinkOptHints || Rebase || ObjcMetaData || UniversalHeaders ||
2032
+ WeakBind || !FilterSections.empty ()))) {
2052
2033
cl::PrintHelpMessage ();
2053
2034
return 2 ;
2054
2035
}
You can’t perform that action at this time.
0 commit comments