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:
Eric Christopher 2011-10-11 23:19:35 +00:00
parent 76d9f1c022
commit 3c43b48fa9

View File

@ -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();