From d5aa6e7c070a7a14a6eb23edbe6343f6ee638e92 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 7 Oct 2022 08:04:37 -0700 Subject: [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. --- .../llvm-project/include/llvm/include/llvm/DebugInfo/DWARFContext.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'third_party/llvm-project/include') diff --git a/third_party/llvm-project/include/llvm/include/llvm/DebugInfo/DWARFContext.h b/third_party/llvm-project/include/llvm/include/llvm/DebugInfo/DWARFContext.h index 2dec107d1..510cf4083 100644 --- a/third_party/llvm-project/include/llvm/include/llvm/DebugInfo/DWARFContext.h +++ b/third_party/llvm-project/include/llvm/include/llvm/DebugInfo/DWARFContext.h @@ -332,7 +332,8 @@ public: bool isLittleEndian() const { return DObj->isLittleEndian(); } static bool isSupportedVersion(unsigned version) { - return version == 2 || version == 3 || version == 4 || version == 5; + // XXX BINARYEN: removed version 5, which we do not support + return version == 2 || version == 3 || version == 4; } std::shared_ptr getDWOContext(StringRef AbsolutePath); -- cgit v1.2.3