diff options
author | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2020-01-31 11:49:20 +0000 |
---|---|---|
committer | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2020-01-31 12:41:31 +0000 |
commit | 24f0b6b6d8e798f76621af9ea6ccda0568d28703 (patch) | |
tree | 108b32cf964509c2815aa03ff0ec475683422c32 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 09217b60fcf1301e0333a69c37c6408d81c46ca5 (diff) | |
download | llvm-24f0b6b6d8e798f76621af9ea6ccda0568d28703.zip llvm-24f0b6b6d8e798f76621af9ea6ccda0568d28703.tar.gz llvm-24f0b6b6d8e798f76621af9ea6ccda0568d28703.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions