aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-08-06 01:38:27 +0000
committerEric Christopher <echristo@gmail.com>2013-08-06 01:38:27 +0000
commit99c22aaeed3d519c0ec958c77aa35aad2e3b0ae9 (patch)
treea449c786c03802c0024adc448c64054d293c844c
parent4f4a190d9f9847c95f5b2db8ca7a19769261e8bc (diff)
downloadexternal_llvm-99c22aaeed3d519c0ec958c77aa35aad2e3b0ae9.zip
external_llvm-99c22aaeed3d519c0ec958c77aa35aad2e3b0ae9.tar.gz
external_llvm-99c22aaeed3d519c0ec958c77aa35aad2e3b0ae9.tar.bz2
Allow 4 as a valid debug info version.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187763 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/DebugInfo/DWARFContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARFContext.h b/lib/DebugInfo/DWARFContext.h
index af9965f..058476e 100644
--- a/lib/DebugInfo/DWARFContext.h
+++ b/lib/DebugInfo/DWARFContext.h
@@ -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).