forked from OSchip/llvm-project
Add getFile() to get DIFile of a DIType.
llvm-svn: 118247
This commit is contained in:
parent
898b1fb1e2
commit
a0148df273
|
@ -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); }
|
||||
|
|
Loading…
Reference in New Issue