diff options
author | Kevin Enderby <enderby@apple.com> | 2017-09-21 21:45:02 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2017-09-21 21:45:02 +0000 |
commit | f310e62b77199c295a280b492996ce8a883e4bd9 (patch) | |
tree | 379b30825dbe0a9f11b407d574d1d285ffc7ca4f /llvm/test/lit.cfg.py | |
parent | d51d38f6f9e9528ad5c98f5c80ebbffd1f930273 (diff) | |
download | bcm5719-llvm-f310e62b77199c295a280b492996ce8a883e4bd9.tar.gz bcm5719-llvm-f310e62b77199c295a280b492996ce8a883e4bd9.zip |
Fix a bug in llvm-objdump when disassembling using the wrong default CPU
in the second slice of a Mach-O universal file.
The code in llvm-objdump in in DisassembleMachO() was getting the default
CPU then incorrectly setting into the global variable used for the -mcpu option
if that was not set. This caused a second call to DisassembleMachO() to use
the wrong default CPU when disassembling the next slice in a Mach-O universal
file. And would result in bad disassembly and an error message about an
recognized processor for the target:
% llvm-objdump -d -m -arch all fat.macho-armv7s-arm64
fat.macho-armv7s-arm64 (architecture armv7s):
(__TEXT,__text) section
armv7:
0: 60 47 bx r12
fat.macho-armv7s-arm64 (architecture arm64):
'cortex-a7' is not a recognized processor for this target (ignoring processor)
'cortex-a7' is not a recognized processor for this target (ignoring processor)
(__TEXT,__text) section
___multc3:
0: .long 0x1e620810
rdar://34439149
llvm-svn: 313921
Diffstat (limited to 'llvm/test/lit.cfg.py')
0 files changed, 0 insertions, 0 deletions