As a prelude to the rest of DWARF5 being supported go ahead and accept
authorEric Christopher <echristo@gmail.com>
Mon, 28 Dec 2015 19:58:36 +0000 (19:58 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 28 Dec 2015 19:58:36 +0000 (19:58 +0000)
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

index ce253a05bf89f4b7c22947e0eb481c032ace59e5..c91012bc9a240940a20be2eadac389a006940e6b 100644 (file)
@@ -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).