File tree Expand file tree Collapse file tree 3 files changed +13
-31
lines changed Expand file tree Collapse file tree 3 files changed +13
-31
lines changed Original file line number Diff line number Diff line change 1
- RUN: llvm-objdump -exports-trie %p/Inputs/macho-no-exports.dylib | FileCheck %s
1
+ RUN: llvm-objdump -macho - exports-trie %p/Inputs/macho-no-exports.dylib | FileCheck %s
2
2
3
3
; Test that we don't crash with an empty export list.
4
- CHECK: macho-no-exports.dylib: file format Mach-O 64-bit x86-64
4
+ CHECK: macho-no-exports.dylib
5
+ CHECK: Exports trie:
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 @@ -2008,34 +2008,15 @@ int main(int argc, char **argv) {
2008
2008
if (DisassembleAll || PrintSource || PrintLines)
2009
2009
Disassemble = true ;
2010
2010
2011
- if (!Disassemble
2012
- && !Relocations
2013
- && !DynamicRelocations
2014
- && !SectionHeaders
2015
- && !SectionContents
2016
- && !SymbolTable
2017
- && !UnwindInfo
2018
- && !PrivateHeaders
2019
- && !FileHeaders
2020
- && !FirstPrivateHeader
2021
- && !ExportsTrie
2022
- && !Rebase
2023
- && !Bind
2024
- && !LazyBind
2025
- && !WeakBind
2026
- && !RawClangAST
2027
- && !(UniversalHeaders && MachOOpt)
2028
- && !ArchiveHeaders
2029
- && !(IndirectSymbols && MachOOpt)
2030
- && !(DataInCode && MachOOpt)
2031
- && !(LinkOptHints && MachOOpt)
2032
- && !(InfoPlist && MachOOpt)
2033
- && !(DylibsUsed && MachOOpt)
2034
- && !(DylibId && MachOOpt)
2035
- && !(ObjcMetaData && MachOOpt)
2036
- && !(!FilterSections.empty () && MachOOpt)
2037
- && !FaultMapSection
2038
- && DwarfDumpType == DIDT_Null) {
2011
+ if (!ArchiveHeaders && !Disassemble && DwarfDumpType == DIDT_Null &&
2012
+ !DynamicRelocations && !FileHeaders && !PrivateHeaders && !RawClangAST &&
2013
+ !Relocations && !SectionHeaders && !SectionContents && !SymbolTable &&
2014
+ !UnwindInfo && !FaultMapSection &&
2015
+ !(MachOOpt &&
2016
+ (Bind || DataInCode || DylibId || DylibsUsed || ExportsTrie ||
2017
+ FirstPrivateHeader || IndirectSymbols || InfoPlist || LazyBind ||
2018
+ LinkOptHints || ObjcMetaData || Rebase || UniversalHeaders ||
2019
+ WeakBind || !FilterSections.empty ()))) {
2039
2020
cl::PrintHelpMessage ();
2040
2021
return 2 ;
2041
2022
}
You can’t perform that action at this time.
0 commit comments