DebugInfo: Drop rest of DIDescriptor subclasses
[oota-llvm.git] / lib / Analysis / ModuleDebugInfoPrinter.cpp
index f2a11cb461f600313b6e043a47a3231f8984dfbf..7ee2f9d6e59df148c7e99f501c7b5f3664b2d0ad 100644 (file)
@@ -90,7 +90,7 @@ void ModuleDebugInfoPrinter::print(raw_ostream &O, const Module *M) const {
     O << '\n';
   }
 
-  for (DIGlobalVariable GV : Finder.global_variables()) {
+  for (const MDGlobalVariable *GV : Finder.global_variables()) {
     O << "Global variable: " << GV->getName();
     printFile(O, GV->getFilename(), GV->getDirectory(), GV->getLine());
     if (!GV->getLinkageName().empty())