Add getFile() to get DIFile of a DIType.
authorDevang Patel <dpatel@apple.com>
Thu, 4 Nov 2010 14:56:34 +0000 (14:56 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 4 Nov 2010 14:56:34 +0000 (14:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118247 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DebugInfo.h

index d508890c50b23a0e83517aeb95e70c9ddf3df9c4..f0054fbf27b83043964402203d75ecf547c9f312 100644 (file)
@@ -238,6 +238,7 @@ namespace llvm {
      
      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); }