DebugInfo: Gut DIVariable and DIGlobalVariable
[oota-llvm.git] / lib / Analysis / ModuleDebugInfoPrinter.cpp
index 38007bbcd3f3b8b35ee6b2745210398ddf1c57e5..f305f13c1aa95a215a214c7230fd3b0182f3ea99 100644 (file)
@@ -91,10 +91,10 @@ void ModuleDebugInfoPrinter::print(raw_ostream &O, const Module *M) const {
   }
 
   for (DIGlobalVariable GV : Finder.global_variables()) {
-    O << "Global variable: " << GV.getName();
-    printFile(O, GV.getFilename(), GV.getDirectory(), GV.getLineNumber());
-    if (!GV.getLinkageName().empty())
-      O << " ('" << GV.getLinkageName() << "')";
+    O << "Global variable: " << GV->getName();
+    printFile(O, GV->getFilename(), GV->getDirectory(), GV->getLine());
+    if (!GV->getLinkageName().empty())
+      O << " ('" << GV->getLinkageName() << "')";
     O << '\n';
   }