mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 12:50:00 +00:00
Fix struct member's scope. Patch by Xi Wang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133828 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e9e0e3aeaf
commit
fa3f9c001f
@ -135,6 +135,7 @@ namespace llvm {
|
|||||||
unsigned Flags);
|
unsigned Flags);
|
||||||
|
|
||||||
/// createMemberType - Create debugging information entry for a member.
|
/// createMemberType - Create debugging information entry for a member.
|
||||||
|
/// @param Scope Member scope.
|
||||||
/// @param Name Member name.
|
/// @param Name Member name.
|
||||||
/// @param File File where this member is defined.
|
/// @param File File where this member is defined.
|
||||||
/// @param LineNo Line number.
|
/// @param LineNo Line number.
|
||||||
@ -143,7 +144,7 @@ namespace llvm {
|
|||||||
/// @param OffsetInBits Member offset.
|
/// @param OffsetInBits Member offset.
|
||||||
/// @param Flags Flags to encode member attribute, e.g. private
|
/// @param Flags Flags to encode member attribute, e.g. private
|
||||||
/// @param Ty Parent type.
|
/// @param Ty Parent type.
|
||||||
DIType createMemberType(StringRef Name, DIFile File,
|
DIType createMemberType(DIDescriptor Scope, StringRef Name, DIFile File,
|
||||||
unsigned LineNo, uint64_t SizeInBits,
|
unsigned LineNo, uint64_t SizeInBits,
|
||||||
uint64_t AlignInBits, uint64_t OffsetInBits,
|
uint64_t AlignInBits, uint64_t OffsetInBits,
|
||||||
unsigned Flags, DIType Ty);
|
unsigned Flags, DIType Ty);
|
||||||
|
@ -219,7 +219,7 @@ DIType DIBuilder::createInheritance(DIType Ty, DIType BaseTy,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// createMemberType - Create debugging information entry for a member.
|
/// createMemberType - Create debugging information entry for a member.
|
||||||
DIType DIBuilder::createMemberType(StringRef Name,
|
DIType DIBuilder::createMemberType(DIDescriptor Scope, StringRef Name,
|
||||||
DIFile File, unsigned LineNumber,
|
DIFile File, unsigned LineNumber,
|
||||||
uint64_t SizeInBits, uint64_t AlignInBits,
|
uint64_t SizeInBits, uint64_t AlignInBits,
|
||||||
uint64_t OffsetInBits, unsigned Flags,
|
uint64_t OffsetInBits, unsigned Flags,
|
||||||
@ -227,7 +227,7 @@ DIType DIBuilder::createMemberType(StringRef Name,
|
|||||||
// TAG_member is encoded in DIDerivedType format.
|
// TAG_member is encoded in DIDerivedType format.
|
||||||
Value *Elts[] = {
|
Value *Elts[] = {
|
||||||
GetTagConstant(VMContext, dwarf::DW_TAG_member),
|
GetTagConstant(VMContext, dwarf::DW_TAG_member),
|
||||||
File, // Or TheCU ? Ty ?
|
Scope,
|
||||||
MDString::get(VMContext, Name),
|
MDString::get(VMContext, Name),
|
||||||
File,
|
File,
|
||||||
ConstantInt::get(Type::getInt32Ty(VMContext), LineNumber),
|
ConstantInt::get(Type::getInt32Ty(VMContext), LineNumber),
|
||||||
|
Loading…
Reference in New Issue
Block a user