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

Devang Patel dpatel at apple.com
Thu Nov 4 07:56:34 PDT 2010


Author: dpatel
Date: Thu Nov  4 09:56:34 2010
New Revision: 118247

URL: http://llvm.org/viewvc/llvm-project?rev=118247&view=rev
Log:
Add getFile() to get DIFile of a DIType.

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=118247&r1=118246&r2=118247&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/DebugInfo.h Thu Nov  4 09:56:34 2010
@@ -238,6 +238,7 @@
      
      return getFieldAs<DIFile>(3).getCompileUnit();
     }
+    DIFile getFile() const              { return getFieldAs<DIFile>(3); }
     unsigned getLineNumber() const      { return getUnsignedField(4); }
     uint64_t getSizeInBits() const      { return getUInt64Field(5); }
     uint64_t getAlignInBits() const     { return getUInt64Field(6); }





More information about the llvm-commits mailing list