mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Add getFile() to get DIFile of a DIType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -238,6 +238,7 @@ namespace llvm {
|
|||||||
|
|
||||||
return getFieldAs<DIFile>(3).getCompileUnit();
|
return getFieldAs<DIFile>(3).getCompileUnit();
|
||||||
}
|
}
|
||||||
|
DIFile getFile() const { return getFieldAs<DIFile>(3); }
|
||||||
unsigned getLineNumber() const { return getUnsignedField(4); }
|
unsigned getLineNumber() const { return getUnsignedField(4); }
|
||||||
uint64_t getSizeInBits() const { return getUInt64Field(5); }
|
uint64_t getSizeInBits() const { return getUInt64Field(5); }
|
||||||
uint64_t getAlignInBits() const { return getUInt64Field(6); }
|
uint64_t getAlignInBits() const { return getUInt64Field(6); }
|
||||||
|
Reference in New Issue
Block a user