mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-08 09:43:20 +00:00
Swap the DIFile in DILexicalBlockFile out for the raw name/directory pair
This is the last change in transitioning all DIScopes to have a common prefix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177756 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7b246860bd
commit
8faed2745c
@ -604,12 +604,6 @@ namespace llvm {
|
||||
DIScope getContext() const { if (getScope().isSubprogram()) return getScope(); return getScope().getContext(); }
|
||||
unsigned getLineNumber() const { return getScope().getLineNumber(); }
|
||||
unsigned getColumnNumber() const { return getScope().getColumnNumber(); }
|
||||
StringRef getDirectory() const {
|
||||
return getFieldAs<DIFile>(1).getDirectory();
|
||||
}
|
||||
StringRef getFilename() const {
|
||||
return getFieldAs<DIFile>(1).getFilename();
|
||||
}
|
||||
DILexicalBlock getScope() const { return getFieldAs<DILexicalBlock>(2); }
|
||||
bool Verify() const;
|
||||
};
|
||||
|
@ -1007,7 +1007,7 @@ DILexicalBlockFile DIBuilder::createLexicalBlockFile(DIDescriptor Scope,
|
||||
DIFile File) {
|
||||
Value *Elts[] = {
|
||||
GetTagConstant(VMContext, dwarf::DW_TAG_lexical_block),
|
||||
File,
|
||||
File.getFileNode(),
|
||||
Scope
|
||||
};
|
||||
DILexicalBlockFile R(MDNode::get(VMContext, Elts));
|
||||
|
@ -664,16 +664,12 @@ DIArray DISubprogram::getVariables() const {
|
||||
StringRef DIScope::getFilename() const {
|
||||
if (!DbgNode)
|
||||
return StringRef();
|
||||
if (isLexicalBlockFile())
|
||||
return DILexicalBlockFile(DbgNode).getFilename();
|
||||
return ::getStringField(getNodeField(DbgNode, 1), 0);
|
||||
}
|
||||
|
||||
StringRef DIScope::getDirectory() const {
|
||||
if (!DbgNode)
|
||||
return StringRef();
|
||||
if (isLexicalBlockFile())
|
||||
return DILexicalBlockFile(DbgNode).getDirectory();
|
||||
return ::getStringField(getNodeField(DbgNode, 1), 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user