From 9baeb40c983f97ee1f92c1c18e621cce88eba599 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 28 Dec 2015 19:58:36 +0000 Subject: [PATCH] As a prelude to the rest of DWARF5 being supported go ahead and accept version 5 in llvm-dwarfdump. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256515 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/DebugInfo/DWARF/DWARFContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/DebugInfo/DWARF/DWARFContext.h b/include/llvm/DebugInfo/DWARF/DWARFContext.h index ce253a05bf8..c91012bc9a2 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFContext.h +++ b/include/llvm/DebugInfo/DWARF/DWARFContext.h @@ -218,7 +218,7 @@ public: virtual StringRef getTUIndexSection() = 0; static bool isSupportedVersion(unsigned version) { - return version == 2 || version == 3 || version == 4; + return version == 2 || version == 3 || version == 4 || version == 5; } private: /// Return the compile unit that includes an offset (relative to .debug_info). -- 2.34.1