mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 07:17:32 +00:00
Debug Info: In DIBuilder, the context field of a DICompositeType is updated
to use DIScopeRef. A paired commit at clang is required due to changes to DIBuilder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192256 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -616,7 +616,7 @@ DICompositeType DIBuilder::createClassType(DIDescriptor Context, StringRef Name,
|
||||
Value *Elts[] = {
|
||||
GetTagConstant(VMContext, dwarf::DW_TAG_class_type),
|
||||
File.getFileNode(),
|
||||
getNonCompileUnitScope(Context),
|
||||
DIScope(getNonCompileUnitScope(Context)).getRef(),
|
||||
MDString::get(VMContext, Name),
|
||||
ConstantInt::get(Type::getInt32Ty(VMContext), LineNumber),
|
||||
ConstantInt::get(Type::getInt64Ty(VMContext), SizeInBits),
|
||||
@@ -653,7 +653,7 @@ DICompositeType DIBuilder::createStructType(DIDescriptor Context,
|
||||
Value *Elts[] = {
|
||||
GetTagConstant(VMContext, dwarf::DW_TAG_structure_type),
|
||||
File.getFileNode(),
|
||||
getNonCompileUnitScope(Context),
|
||||
DIScope(getNonCompileUnitScope(Context)).getRef(),
|
||||
MDString::get(VMContext, Name),
|
||||
ConstantInt::get(Type::getInt32Ty(VMContext), LineNumber),
|
||||
ConstantInt::get(Type::getInt64Ty(VMContext), SizeInBits),
|
||||
@@ -687,7 +687,7 @@ DICompositeType DIBuilder::createUnionType(DIDescriptor Scope, StringRef Name,
|
||||
Value *Elts[] = {
|
||||
GetTagConstant(VMContext, dwarf::DW_TAG_union_type),
|
||||
File.getFileNode(),
|
||||
getNonCompileUnitScope(Scope),
|
||||
DIScope(getNonCompileUnitScope(Scope)).getRef(),
|
||||
MDString::get(VMContext, Name),
|
||||
ConstantInt::get(Type::getInt32Ty(VMContext), LineNumber),
|
||||
ConstantInt::get(Type::getInt64Ty(VMContext), SizeInBits),
|
||||
@@ -741,7 +741,7 @@ DICompositeType DIBuilder::createEnumerationType(
|
||||
Value *Elts[] = {
|
||||
GetTagConstant(VMContext, dwarf::DW_TAG_enumeration_type),
|
||||
File.getFileNode(),
|
||||
getNonCompileUnitScope(Scope),
|
||||
DIScope(getNonCompileUnitScope(Scope)).getRef(),
|
||||
MDString::get(VMContext, Name),
|
||||
ConstantInt::get(Type::getInt32Ty(VMContext), LineNumber),
|
||||
ConstantInt::get(Type::getInt64Ty(VMContext), SizeInBits),
|
||||
|
Reference in New Issue
Block a user