Refactor out the DIFile parameter to DILexicalBlock to refer to the raw file/directory pair

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177742 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie
2013-03-22 17:33:20 +00:00
parent be67aa52a8
commit 4b52a88e90
9 changed files with 9 additions and 19 deletions

View File

@@ -666,8 +666,6 @@ StringRef DIScope::getFilename() const {
return StringRef();
if (isLexicalBlockFile())
return DILexicalBlockFile(DbgNode).getFilename();
if (isLexicalBlock())
return DILexicalBlock(DbgNode).getFilename();
return ::getStringField(getNodeField(DbgNode, 1), 0);
}
@@ -676,8 +674,6 @@ StringRef DIScope::getDirectory() const {
return StringRef();
if (isLexicalBlockFile())
return DILexicalBlockFile(DbgNode).getDirectory();
if (isLexicalBlock())
return DILexicalBlock(DbgNode).getDirectory();
return ::getStringField(getNodeField(DbgNode, 1), 1);
}