Remove unnecessary version check.

llvm-svn: 137728
This commit is contained in:
Devang Patel 2011-08-16 17:41:41 +00:00
parent 7d7bec5acf
commit 927840458e
1 changed files with 1 additions and 2 deletions

View File

@ -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.