forked from OSchip/llvm-project
[llvm-objdump] Make --disassemble-functions imply -d
Fixes https://bugs.llvm.org/show_bug.cgi?id=41903 Patch by Mike Pozulp! Differential revision: https://reviews.llvm.org/D62054 llvm-svn: 361240
This commit is contained in:
parent
a95d95d392
commit
f44eb922c0
|
@ -0,0 +1,22 @@
|
|||
## Check that --disassemble-functions implies --disassemble.
|
||||
# RUN: yaml2obj < %s | llvm-objdump - --disassemble-functions=main | FileCheck %s
|
||||
|
||||
--- !ELF
|
||||
FileHeader:
|
||||
Class: ELFCLASS64
|
||||
Data: ELFDATA2LSB
|
||||
Type: ET_REL
|
||||
Machine: EM_X86_64
|
||||
Sections:
|
||||
- Name: .text
|
||||
Type: SHT_PROGBITS
|
||||
Flags: [ SHF_EXECINSTR ]
|
||||
Content: 90
|
||||
Symbols:
|
||||
- Name: main
|
||||
Type: STT_FUNC
|
||||
Section: .text
|
||||
...
|
||||
|
||||
# CHECK: 0000000000000000 main:
|
||||
# CHECK-NEXT: 0: 90 nop
|
|
@ -2032,7 +2032,8 @@ int main(int argc, char **argv) {
|
|||
ArchiveHeaders = FileHeaders = PrivateHeaders = Relocations =
|
||||
SectionHeaders = SymbolTable = true;
|
||||
|
||||
if (DisassembleAll || PrintSource || PrintLines)
|
||||
if (DisassembleAll || PrintSource || PrintLines ||
|
||||
(!DisassembleFunctions.empty()))
|
||||
Disassemble = true;
|
||||
|
||||
if (!ArchiveHeaders && !Disassemble && DwarfDumpType == DIDT_Null &&
|
||||
|
|
Loading…
Reference in New Issue