[llvm-commits] [llvm] r141739 - /llvm/trunk/include/llvm/Analysis/DebugInfo.h
Eric Christopher
echristo at apple.com
Tue Oct 11 16:19:36 PDT 2011
Author: echristo
Date: Tue Oct 11 18:19:35 2011
New Revision: 141739
URL: http://llvm.org/viewvc/llvm-project?rev=141739&view=rev
Log:
Use public accessors on the scope that is returned.
Modified:
llvm/trunk/include/llvm/Analysis/DebugInfo.h
Modified: llvm/trunk/include/llvm/Analysis/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/DebugInfo.h?rev=141739&r1=141738&r2=141739&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/DebugInfo.h Tue Oct 11 18:19:35 2011
@@ -708,8 +708,8 @@
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();
More information about the llvm-commits
mailing list