summaryrefslogtreecommitdiff
path: root/third_party/llvm-project
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/llvm-project')
-rw-r--r--third_party/llvm-project/DWARFEmitter.cpp3
-rw-r--r--third_party/llvm-project/include/llvm/include/llvm/DebugInfo/DWARFContext.h3
2 files changed, 4 insertions, 2 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)");
}
}
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<DWARFContext> getDWOContext(StringRef AbsolutePath);