debug info demo: makes demo for complex type use new API
This commit is contained in:
committed by
vvlevchenko
parent
010360df7d
commit
98e2405f41
@@ -103,7 +103,7 @@ main() {
|
|||||||
DITypeOpaqueRef int_type = TYPE(DICreateBasicType(g_codegen.di_builder, "int", 32, 4, 0));
|
DITypeOpaqueRef int_type = TYPE(DICreateBasicType(g_codegen.di_builder, "int", 32, 4, 0));
|
||||||
DIDerivedTypeRef elements_int_type[2];
|
DIDerivedTypeRef elements_int_type[2];
|
||||||
file = DICreateFile(g_codegen.di_builder, "<stdin>", "");
|
file = DICreateFile(g_codegen.di_builder, "<stdin>", "");
|
||||||
DICompositeTypeRef tempA = DICreateReplaceableCompositeType(g_codegen.di_builder, "A", SCOPE(g_codegen.di_compile_unit), file, 2);
|
DICompositeTypeRef tempA = DICreateReplaceableCompositeType(g_codegen.di_builder, "A", SCOPE(g_codegen.di_compile_unit), file, 2, 0);
|
||||||
elements_int_type[0] = DICreateMemberType(
|
elements_int_type[0] = DICreateMemberType(
|
||||||
/* builder = */ g_codegen.di_builder,
|
/* builder = */ g_codegen.di_builder,
|
||||||
/* scope = */ SCOPE(tempA), /* note: here dump points to structure ???*/
|
/* scope = */ SCOPE(tempA), /* note: here dump points to structure ???*/
|
||||||
|
|||||||
Reference in New Issue
Block a user