DebugInfo: Gut DIScope, DIEnumerator and DISubrange

The only class the still has API left is `DIDescriptor` itself.

llvm-svn: 235067
This commit is contained in:
Duncan P. N. Exon Smith
2015-04-16 01:37:00 +00:00
parent 373ee85966
commit b273d06b63
11 changed files with 61 additions and 98 deletions

View File

@@ -362,9 +362,9 @@ static void printDebugLoc(DebugLoc DL, raw_ostream &CommentOS,
if (!DL)
return;
DIScope Scope = cast<MDScope>(DL.getScope());
auto *Scope = cast<MDScope>(DL.getScope());
// Omit the directory, because it's likely to be long and uninteresting.
CommentOS << Scope.getFilename();
CommentOS << Scope->getFilename();
CommentOS << ':' << DL.getLine();
if (DL.getCol() != 0)
CommentOS << ':' << DL.getCol();