[all-commits] [llvm/llvm-project] 24f0b6: [llvm-objdump] avoid crash disassembling unknown i...
sjoerdmeijer via All-commits
all-commits at lists.llvm.org
Fri Jan 31 04:42:12 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 24f0b6b6d8e798f76621af9ea6ccda0568d28703
https://github.com/llvm/llvm-project/commit/24f0b6b6d8e798f76621af9ea6ccda0568d28703
Author: Sjoerd Meijer <sjoerd.meijer at arm.com>
Date: 2020-01-31 (Fri, 31 Jan 2020)
Changed paths:
A llvm/test/tools/llvm-objdump/ARM/unknown-instr.test
M llvm/tools/llvm-objdump/llvm-objdump.cpp
Log Message:
-----------
[llvm-objdump] avoid crash disassembling unknown instruction
Disassembly of instructions can fail when llvm-objdump is not given the right set of
architecture features, for example when the source is compiled with:
clang -march=..+ext1+ext2
and disassembly is attempted with:
llvm-objdump -mattr=+ext1
This patch avoids further analysing unknown instructions (as was happening
before) when disassembly has failed.
Differential Revision: https://reviews.llvm.org/D73531
More information about the All-commits
mailing list