diff options
author | Martin Storsjö <martin@martin.st> | 2020-08-20 10:38:17 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2020-08-28 09:05:36 +0300 |
commit | 37ef743cbf3fb1c56cca8035d9acb0cde83976f9 (patch) | |
tree | 6c5aa24b100cc84e4587185185f4d27477c75eaf /llvm/tools/llvm-readobj/llvm-readobj.cpp | |
parent | a5d0fd19d97ce7d32a266c5131ac82071b2c4a97 (diff) | |
download | llvm-37ef743cbf3fb1c56cca8035d9acb0cde83976f9.zip llvm-37ef743cbf3fb1c56cca8035d9acb0cde83976f9.tar.gz llvm-37ef743cbf3fb1c56cca8035d9acb0cde83976f9.tar.bz2 |
[MC] [Win64EH] Avoid producing malformed xdata records
If there's no unwinding opcodes, omit writing the xdata/pdata records.
Previously, this generated truncated xdata records, and llvm-readobj
would error out when trying to print them.
If writing of an xdata record is forced via the .seh_handlerdata
directive, skip it if there's no info to make a sensible unwind
info structure out of, and clearly error out if such info appeared
later in the process.
Differential Revision: https://reviews.llvm.org/D86527
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions