mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user