[llvm-commits] [llvm] r141752 - /llvm/trunk/include/llvm/Analysis/DebugInfo.h

Eric Christopher echristo at apple.com
Tue Oct 11 17:38:06 PDT 2011


Author: echristo
Date: Tue Oct 11 19:38:05 2011
New Revision: 141752

URL: http://llvm.org/viewvc/llvm-project?rev=141752&view=rev
Log:
Make this use a public accessor too.

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=141752&r1=141751&r2=141752&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/DebugInfo.h Tue Oct 11 19:38:05 2011
@@ -707,7 +707,7 @@
   class DILexicalBlockFile : public DIScope {
   public:
     explicit DILexicalBlockFile(const MDNode *N = 0) : DIScope(N) {}
-    DIScope getContext() const { return getScope().getFieldAs<DIScope>(1); }
+    DIScope getContext() const { return getScope().getContext(); }
     unsigned getLineNumber() const { return getScope().getLineNumber(); }
     unsigned getColumnNumber() const { return getScope().getColumnNumber(); }
     StringRef getDirectory() const {





More information about the llvm-commits mailing list