diff options
author | Alon Zakai <azakai@google.com> | 2022-10-07 08:04:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 08:04:37 -0700 |
commit | d5aa6e7c070a7a14a6eb23edbe6343f6ee638e92 (patch) | |
tree | 123273782f77363c8f927a6458cb45a2123ab050 /third_party/llvm-project/DWARFEmitter.cpp | |
parent | 7fc26f3e78f72ecaa5b79ebe042b95a0be422327 (diff) | |
download | binaryen-d5aa6e7c070a7a14a6eb23edbe6343f6ee638e92.tar.gz binaryen-d5aa6e7c070a7a14a6eb23edbe6343f6ee638e92.tar.bz2 binaryen-d5aa6e7c070a7a14a6eb23edbe6343f6ee638e92.zip |
[DWARF] Warn on unsupport DWARF versions and content (#5120)
Unfortunately there isn't a single place where an error may occur. I tested on
several files with different flags and added sufficient warnings so that we warn
on them all.
Diffstat (limited to 'third_party/llvm-project/DWARFEmitter.cpp')
-rw-r--r-- | third_party/llvm-project/DWARFEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/llvm-project/DWARFEmitter.cpp b/third_party/llvm-project/DWARFEmitter.cpp index 1dc59ed53..7c66a82fa 100644 --- a/third_party/llvm-project/DWARFEmitter.cpp +++ b/third_party/llvm-project/DWARFEmitter.cpp @@ -197,7 +197,8 @@ protected: void onEndCompileUnit(const DWARFYAML::Unit &CU) { size_t EndPos = OS.tell(); if (EndPos - StartPos != CU.Length.getLength() && !CU.AddrSizeChanged) { - llvm_unreachable("compile unit size was incorrect"); + llvm_unreachable("compile unit size was incorrect " + "(this may be an unsupported version of DWARF)"); } } |