aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-08-16 17:41:41 +0000
committerDevang Patel <dpatel@apple.com>2011-08-16 17:41:41 +0000
commite26a1352487c350acaee62bc5f7fa4002b9bf524 (patch)
tree28d4061cdb254970caf2883e7d059384c04b940c /lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parenta43d3e71ecd2c16ce1fafc7c5d5de106a90948d6 (diff)
downloadexternal_llvm-e26a1352487c350acaee62bc5f7fa4002b9bf524.zip
external_llvm-e26a1352487c350acaee62bc5f7fa4002b9bf524.tar.gz
external_llvm-e26a1352487c350acaee62bc5f7fa4002b9bf524.tar.bz2
Remove unnecessary version check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 4cc54d6..45e0aaa 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -617,8 +617,7 @@ bool DwarfDebug::collectLegacyDebugInfo(Module *M) {
for (DebugInfoFinder::iterator I = DbgFinder.global_variable_begin(),
E = DbgFinder.global_variable_end(); I != E; ++I) {
const MDNode *N = *I;
- if (DIGlobalVariable(N).getVersion() <= LLVMDebugVersion9)
- constructGlobalVariableDIE(getCompileUnit(N), N);
+ constructGlobalVariableDIE(getCompileUnit(N), N);
}
// Create DIEs for each subprogram.