Go to file
Kevin Enderby f310e62b77 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
2017-09-21 21:45:02 +00:00
clang [lit] Refactor out some more common lit configuration code. 2017-09-21 21:27:31 +00:00
clang-tools-extra [clangd] Fixed crash on MacOS. 2017-09-20 19:32:06 +00:00
compiler-rt [XRay][compiler-rt] Remove non-trivial globals from xray_log_interface.cc 2017-09-21 10:16:56 +00:00
debuginfo-tests Revert r313600 due to bot failures on Green Dragon. 2017-09-19 14:51:37 +00:00
libclc Implement cl_khr_int64_extended_atomics builtins 2017-09-20 20:42:19 +00:00
libcxx Revert 313789 because gcc doesn't like it 2017-09-20 19:38:43 +00:00
libcxxabi Fix ASAN build with older compiler-rt versions. 2017-09-14 22:37:34 +00:00
libunwind [libunwind] Partially revert r297174 to fix build on at least FreeBSD. 2017-09-21 21:28:48 +00:00
lld [lit] Refactor out some more common lit configuration code. 2017-09-21 21:27:31 +00:00
lldb [LLDB] Implement interactive command interruption 2017-09-21 19:36:52 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm Fix a bug in llvm-objdump when disassembling using the wrong default CPU 2017-09-21 21:45:02 +00:00
openmp Read blocktime value set by kmp_set_blocktime() before reading from KMP_BLOCKTIME 2017-09-05 15:45:48 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [DeLICM] Allow non-injective PHIRead->PHIWrite mapping. 2017-09-21 19:08:23 +00:00