Allow 4 as a valid debug info version.
authorEric Christopher <echristo@gmail.com>
Tue, 6 Aug 2013 01:38:27 +0000 (01:38 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 6 Aug 2013 01:38:27 +0000 (01:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187763 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/DWARFContext.h

index af9965fd1d33a1948f0b6b414f2c566601ba9c1a..058476e34d376fb2c886a630ea0bbd243776cc52 100644 (file)
@@ -130,7 +130,7 @@ public:
   virtual const RelocAddrMap &infoDWORelocMap() const = 0;
 
   static bool isSupportedVersion(unsigned version) {
-    return version == 2 || version == 3;
+    return version == 2 || version == 3 || version == 4;
   }
 private:
   /// Return the compile unit that includes an offset (relative to .debug_info).