aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-readobj/llvm-readobj.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2020-08-20 10:38:17 +0300
committerMartin Storsjö <martin@martin.st>2020-08-28 09:05:36 +0300
commit37ef743cbf3fb1c56cca8035d9acb0cde83976f9 (patch)
tree6c5aa24b100cc84e4587185185f4d27477c75eaf /llvm/tools/llvm-readobj/llvm-readobj.cpp
parenta5d0fd19d97ce7d32a266c5131ac82071b2c4a97 (diff)
downloadllvm-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