diff options
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 4cc54d6941b..45e0aaa5010 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/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. |

