Add getFile() to get DIFile of a DIType.

llvm-svn: 118247
This commit is contained in:
Devang Patel 2010-11-04 14:56:34 +00:00
parent 898b1fb1e2
commit a0148df273
1 changed files with 1 additions and 0 deletions

View 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); }