mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 06:03:52 +00:00
Use public accessors on the scope that is returned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
76d9f1c022
commit
3c43b48fa9
@ -708,8 +708,8 @@ namespace llvm {
|
||||
public:
|
||||
explicit DILexicalBlockFile(const MDNode *N = 0) : DIScope(N) {}
|
||||
DIScope getContext() const { return getScope().getFieldAs<DIScope>(1); }
|
||||
unsigned getLineNumber() const { return getScope().getUnsignedField(2); }
|
||||
unsigned getColumnNumber() const { return getScope().getUnsignedField(3); }
|
||||
unsigned getLineNumber() const { return getScope().getLineNumber(); }
|
||||
unsigned getColumnNumber() const { return getScope().getColumnNumber(); }
|
||||
StringRef getDirectory() const {
|
||||
StringRef dir = getFieldAs<DIFile>(2).getDirectory();
|
||||
return !dir.empty() ? dir : getContext().getDirectory();
|
||||
|
Loading…
Reference in New Issue
Block a user