diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 4cc54d6941b..45e0aaa5010 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.