DebugInfo: Gut DIScope, DIEnumerator and DISubrange
[oota-llvm.git] / lib / Target / NVPTX / NVPTXAsmPrinter.cpp
index 20f5b434bbf9f107a2eee67912ac9acaead89106..9a719644c56c381c0bfef581513b53527821b4c9 100644 (file)
@@ -129,12 +129,12 @@ void NVPTXAsmPrinter::emitLineNumberAsDotLoc(const MachineInstr &MI) {
   if (!curLoc)
     return;
 
-  DIScope Scope = cast_or_null<MDScope>(curLoc.getScope());
+  auto *Scope = cast_or_null<MDScope>(curLoc.getScope());
   if (!Scope)
      return;
 
-  StringRef fileName(Scope.getFilename());
-  StringRef dirName(Scope.getDirectory());
+  StringRef fileName(Scope->getFilename());
+  StringRef dirName(Scope->getDirectory());
   SmallString<128> FullPathName = dirName;
   if (!dirName.empty() && !sys::path::is_absolute(fileName)) {
     sys::path::append(FullPathName, fileName);