summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-10-11 23:19:35 +0000
committerEric Christopher <echristo@apple.com>2011-10-11 23:19:35 +0000
commit3c43b48fa96664318f0c1c17475114fe7015add6 (patch)
treec093950c24fb7872fbb147a5fbaf0c58d580f421 /include
parent76d9f1c0222e73264037afb739e34317a35a1fb1 (diff)
downloadllvm-3c43b48fa96664318f0c1c17475114fe7015add6.tar.gz
llvm-3c43b48fa96664318f0c1c17475114fe7015add6.tar.bz2
llvm-3c43b48fa96664318f0c1c17475114fe7015add6.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/DebugInfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index d2bb29bd71..402975b76c 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -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();