mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 13:58:14 +00:00
Move SubobjectDestroy and SelfDestruct out of interface Destroy (#7942)
Determining that a type has trivial destruction requires checking whether all of its subobjects have trivial destruction and whether its type has a custom witness for `Destroy.Op`. This isn't possible when `Destroy` is the custodian for `Destroy.Op` and `SubobjectDestroy.Op`, so we need to make `SubobjectDestroy` its own interface. `Destroy.SelfDestruct` becomes a standalone function because it depends on `SubobjectDestroy` and `Destroy` being implemented, and is also responsible for generating any custom witnesses for both interfaces. Making `SelfDestruct` an interface was experimented with, but this required a blanket impl that caused issues for facet types. `Destroy` depends on `SubobjectDestroy` to be implemented. We'd ideally use `require impls SubobjectDestroy`, but it isn't complete yet, and it also causes problems when `Destroy` is implemented inside the class definition. We work around this by temporarily renaming the `Destroy` interface to `DestroyImpl`, and introducing a constraint called `Destroy` so that user code doesn't need to write `Core.SubobjectDestroy & Core.Destroy`.
This commit is contained in:
1 parent
57bf903ef1
commit
05a7ecbd34
357 files changed
+41452
-59092
No files matched your search
@@ -79,27 +79,20 @@ void f() {
|
||||
// CHECK:STDOUT: ; Function Attrs: alwaysinline nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_C__destroy_thunk:thunk.OneArg.Main"(ptr %self) #4 !dbg !15 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @"_CSelfDestruct.7040ef4e2429d520:core.Destroy.Core"(ptr %self), !dbg !17
|
||||
// CHECK:STDOUT: call void @_CSelfDestruct.Core.f5db22251d2a7ef4(ptr %self), !dbg !17
|
||||
// CHECK:STDOUT: ret void, !dbg !17
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.cb8adced19392b99:core.Destroy.Core"(ptr %self) #5 !dbg !19 {
|
||||
// CHECK:STDOUT: define void @_COneArg__carbon_thunk.OneArg.Main(ptr %_, ptr %_1) #5 !dbg !19 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !21
|
||||
// CHECK:STDOUT: %.loc6_28.2 = load i32, ptr %_1, align 4, !dbg !22
|
||||
// CHECK:STDOUT: call void @_COneArg.OneArg.Main(ptr %_, i32 %.loc6_28.2), !dbg !22
|
||||
// CHECK:STDOUT: ret void, !dbg !22
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.7040ef4e2429d520:core.Destroy.Core"(ptr %self) #5 !dbg !23 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !25
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define void @_COneArg__carbon_thunk.OneArg.Main(ptr %_, ptr %_1) #5 !dbg !27 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %.loc6_28.2 = load i32, ptr %_1, align 4, !dbg !30
|
||||
// CHECK:STDOUT: call void @_COneArg.OneArg.Main(ptr %_, i32 %.loc6_28.2), !dbg !30
|
||||
// CHECK:STDOUT: define linkonce_odr void @_CSelfDestruct.Core.f5db22251d2a7ef4(ptr %t) #5 !dbg !25 {
|
||||
// CHECK:STDOUT: ret void, !dbg !30
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
@@ -128,19 +121,16 @@ void f() {
|
||||
// CHECK:STDOUT: !16 = !DILocalVariable(arg: 1, scope: !15, type: !8)
|
||||
// CHECK:STDOUT: !17 = !DILocation(line: 5, column: 1, scope: !15)
|
||||
// CHECK:STDOUT: !18 = !{!16}
|
||||
// CHECK:STDOUT: !19 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.cb8adced19392b99:core.Destroy.Core", scope: null, file: !5, line: 5, type: !12, spFlags: DISPFlagDefinition, unit: !6, retainedNodes: !22)
|
||||
// CHECK:STDOUT: !19 = distinct !DISubprogram(name: "OneArg__carbon_thunk", linkageName: "_COneArg__carbon_thunk.OneArg.Main", scope: null, file: !5, line: 6, type: !14, spFlags: DISPFlagDefinition, unit: !6, retainedNodes: !23)
|
||||
// CHECK:STDOUT: !20 = !DILocalVariable(arg: 1, scope: !19, type: !8)
|
||||
// CHECK:STDOUT: !21 = !DILocation(line: 5, column: 1, scope: !19)
|
||||
// CHECK:STDOUT: !22 = !{!20}
|
||||
// CHECK:STDOUT: !23 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.7040ef4e2429d520:core.Destroy.Core", scope: null, file: !5, line: 5, type: !12, spFlags: DISPFlagDefinition, unit: !6, retainedNodes: !26)
|
||||
// CHECK:STDOUT: !24 = !DILocalVariable(arg: 1, scope: !23, type: !8)
|
||||
// CHECK:STDOUT: !25 = !DILocation(line: 5, column: 1, scope: !23)
|
||||
// CHECK:STDOUT: !26 = !{!24}
|
||||
// CHECK:STDOUT: !27 = distinct !DISubprogram(name: "OneArg__carbon_thunk", linkageName: "_COneArg__carbon_thunk.OneArg.Main", scope: null, file: !5, line: 6, type: !14, spFlags: DISPFlagDefinition, unit: !6, retainedNodes: !31)
|
||||
// CHECK:STDOUT: !28 = !DILocalVariable(arg: 1, scope: !27, type: !8)
|
||||
// CHECK:STDOUT: !29 = !DILocalVariable(arg: 2, scope: !27, type: !7)
|
||||
// CHECK:STDOUT: !30 = !DILocation(line: 6, column: 3, scope: !27)
|
||||
// CHECK:STDOUT: !31 = !{!28, !29}
|
||||
// CHECK:STDOUT: !21 = !DILocalVariable(arg: 2, scope: !19, type: !7)
|
||||
// CHECK:STDOUT: !22 = !DILocation(line: 6, column: 3, scope: !19)
|
||||
// CHECK:STDOUT: !23 = !{!20, !21}
|
||||
// CHECK:STDOUT: !24 = !DIFile(filename: "{{.*}}/prelude/destroy.carbon", directory: "")
|
||||
// CHECK:STDOUT: !25 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.Core.f5db22251d2a7ef4", scope: null, file: !24, line: 36, type: !12, spFlags: DISPFlagDefinition, unit: !6, retainedNodes: !31)
|
||||
// CHECK:STDOUT: !26 = !DILocalVariable(arg: 1, scope: !25, type: !8)
|
||||
// CHECK:STDOUT: !30 = !DILocation(line: 36, column: 1, scope: !25)
|
||||
// CHECK:STDOUT: !31 = !{!26}
|
||||
// CHECK:STDOUT: !32 = !{!"Simple C++ TBAA"}
|
||||
// CHECK:STDOUT: !33 = !{!"omnipotent char", !32, i64 0}
|
||||
// CHECK:STDOUT: !34 = !{!"any pointer", !33, i64 0}
|
||||
|
||||
+105
-116
@@ -142,7 +142,7 @@ fn Run() {
|
||||
// CHECK:STDOUT: define linkonce_odr dso_local void @_ZN6Carbon4Main1AD2Ev(ptr noundef nonnull align 1 %this) unnamed_addr #3 comdat align 2 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %this.addr = alloca ptr, align 8
|
||||
// CHECK:STDOUT: store ptr %this, ptr %this.addr, align 8, !tbaa !75
|
||||
// CHECK:STDOUT: store ptr %this, ptr %this.addr, align 8, !tbaa !83
|
||||
// CHECK:STDOUT: %this1 = load ptr, ptr %this.addr, align 8
|
||||
// CHECK:STDOUT: call void @"_C__destroy_thunk:thunk.A.Main"(ptr noundef nonnull align 1 %this1)
|
||||
// CHECK:STDOUT: ret void
|
||||
@@ -160,7 +160,7 @@ fn Run() {
|
||||
// CHECK:STDOUT: define linkonce_odr dso_local void @_ZN6Carbon4Main1BD2Ev(ptr noundef nonnull align 1 %this) unnamed_addr #3 comdat align 2 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %this.addr = alloca ptr, align 8
|
||||
// CHECK:STDOUT: store ptr %this, ptr %this.addr, align 8, !tbaa !77
|
||||
// CHECK:STDOUT: store ptr %this, ptr %this.addr, align 8, !tbaa !85
|
||||
// CHECK:STDOUT: %this1 = load ptr, ptr %this.addr, align 8
|
||||
// CHECK:STDOUT: call void @"_C__destroy_thunk:thunk.B.Main"(ptr noundef nonnull align 1 %this1)
|
||||
// CHECK:STDOUT: ret void
|
||||
@@ -170,82 +170,74 @@ fn Run() {
|
||||
// CHECK:STDOUT: declare void @llvm.lifetime.end.p0(ptr captures(none)) #1
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define void @"_CDoit.A.Main:I.Main"(ptr %self) #4 !dbg !18 {
|
||||
// CHECK:STDOUT: define void @"_CDoit.A.Main:I.Main"(ptr %self) #4 !dbg !24 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !21
|
||||
// CHECK:STDOUT: ret void, !dbg !27
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define void @"_CDoit.B.Main:I.Main"(ptr %self) #4 !dbg !23 {
|
||||
// CHECK:STDOUT: define void @"_CDoit.B.Main:I.Main"(ptr %self) #4 !dbg !29 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !26
|
||||
// CHECK:STDOUT: ret void, !dbg !32
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: alwaysinline nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_C__destroy_thunk:thunk.A.Main"(ptr %self) #5 !dbg !28 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_C__destroy_thunk:thunk.A.Main"(ptr %self) #5 !dbg !34 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @"_CSelfDestruct.5a23cc09585c55d2:core.Destroy.Core"(ptr %self), !dbg !30
|
||||
// CHECK:STDOUT: ret void, !dbg !30
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.cb8adced19392b99:core.Destroy.Core"(ptr %self) #4 !dbg !32 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !34
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.5a23cc09585c55d2:core.Destroy.Core"(ptr %self) #4 !dbg !36 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !38
|
||||
// CHECK:STDOUT: call void @_CSelfDestruct.Core.6b8b385dcf82cc70(ptr %self), !dbg !36
|
||||
// CHECK:STDOUT: ret void, !dbg !36
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: alwaysinline nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_C__destroy_thunk:thunk.B.Main"(ptr %self) #5 !dbg !40 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_C__destroy_thunk:thunk.B.Main"(ptr %self) #5 !dbg !38 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @"_CSelfDestruct.8c4b83ecd900f1ea:core.Destroy.Core"(ptr %self), !dbg !42
|
||||
// CHECK:STDOUT: ret void, !dbg !42
|
||||
// CHECK:STDOUT: call void @_CSelfDestruct.Core.6579a5013ba3dcd2(ptr %self), !dbg !40
|
||||
// CHECK:STDOUT: ret void, !dbg !40
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.8c4b83ecd900f1ea:core.Destroy.Core"(ptr %self) #4 !dbg !44 {
|
||||
// CHECK:STDOUT: define void @_CF__carbon_thunk.26f2099a79512a5d.Main(ptr %_) #4 !dbg !42 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !46
|
||||
// CHECK:STDOUT: call void @_CF.Main.6662a1ffb773360a(ptr %_), !dbg !44
|
||||
// CHECK:STDOUT: ret void, !dbg !44
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define void @_CF__carbon_thunk.26f2099a79512a5d.Main(ptr %_) #4 !dbg !48 {
|
||||
// CHECK:STDOUT: define void @_CF__carbon_thunk.7a3b9f04ddf4269e.Main(ptr %_) #4 !dbg !46 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @_CF.Main.6662a1ffb773360a(ptr %_), !dbg !50
|
||||
// CHECK:STDOUT: ret void, !dbg !50
|
||||
// CHECK:STDOUT: call void @_CF.Main.d53b17eed3ce903c(ptr %_), !dbg !48
|
||||
// CHECK:STDOUT: ret void, !dbg !48
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define void @_CF__carbon_thunk.7a3b9f04ddf4269e.Main(ptr %_) #4 !dbg !52 {
|
||||
// CHECK:STDOUT: define i32 @main() #4 !dbg !50 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @_CF.Main.d53b17eed3ce903c(ptr %_), !dbg !54
|
||||
// CHECK:STDOUT: ret void, !dbg !54
|
||||
// CHECK:STDOUT: call void @_Z1Gv(), !dbg !51
|
||||
// CHECK:STDOUT: ret i32 0, !dbg !52
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define i32 @main() #4 !dbg !56 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @_Z1Gv(), !dbg !57
|
||||
// CHECK:STDOUT: ret i32 0, !dbg !58
|
||||
// CHECK:STDOUT: define linkonce_odr void @_CSelfDestruct.Core.6b8b385dcf82cc70(ptr %t) #4 !dbg !53 {
|
||||
// CHECK:STDOUT: ret void, !dbg !58
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr void @_CF.Main.6662a1ffb773360a(ptr %t) #4 !dbg !59 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @"_CDoit.A.Main:I.Main"(ptr %t), !dbg !62
|
||||
// CHECK:STDOUT: ret void, !dbg !63
|
||||
// CHECK:STDOUT: define linkonce_odr void @_CSelfDestruct.Core.6579a5013ba3dcd2(ptr %t) #4 !dbg !60 {
|
||||
// CHECK:STDOUT: ret void, !dbg !65
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr void @_CF.Main.d53b17eed3ce903c(ptr %t) #4 !dbg !65 {
|
||||
// CHECK:STDOUT: define linkonce_odr void @_CF.Main.6662a1ffb773360a(ptr %t) #4 !dbg !67 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @"_CDoit.B.Main:I.Main"(ptr %t), !dbg !68
|
||||
// CHECK:STDOUT: ret void, !dbg !69
|
||||
// CHECK:STDOUT: call void @"_CDoit.A.Main:I.Main"(ptr %t), !dbg !70
|
||||
// CHECK:STDOUT: ret void, !dbg !71
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr void @_CF.Main.d53b17eed3ce903c(ptr %t) #4 !dbg !73 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @"_CDoit.B.Main:I.Main"(ptr %t), !dbg !76
|
||||
// CHECK:STDOUT: ret void, !dbg !77
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; uselistorder directives
|
||||
@@ -261,80 +253,77 @@ fn Run() {
|
||||
// CHECK:STDOUT: attributes #4 = { nounwind }
|
||||
// CHECK:STDOUT: attributes #5 = { alwaysinline nounwind }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !llvm.dbg.cu = !{!9}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!78, !79, !80, !4, !5}
|
||||
// CHECK:STDOUT: !llvm.errno.tbaa = !{!83}
|
||||
// CHECK:STDOUT: !llvm.dbg.cu = !{!15}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!86, !87, !88, !4, !5}
|
||||
// CHECK:STDOUT: !llvm.errno.tbaa = !{!91}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !4 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !5 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
// CHECK:STDOUT: !8 = !DIFile(filename: "generic_type_impls_interface.carbon", directory: "")
|
||||
// CHECK:STDOUT: !9 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !8, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
|
||||
// CHECK:STDOUT: !10 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)
|
||||
// CHECK:STDOUT: !11 = !{null, !10}
|
||||
// CHECK:STDOUT: !12 = !DISubroutineType(types: !11)
|
||||
// CHECK:STDOUT: !13 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
|
||||
// CHECK:STDOUT: !14 = !{!13}
|
||||
// CHECK:STDOUT: !15 = !DISubroutineType(types: !14)
|
||||
// CHECK:STDOUT: !18 = distinct !DISubprogram(name: "Doit", linkageName: "_CDoit.A.Main:I.Main", scope: null, file: !8, line: 10, type: !12, spFlags: DISPFlagDefinition, unit: !9, retainedNodes: !22)
|
||||
// CHECK:STDOUT: !19 = !DILocalVariable(arg: 1, scope: !18, type: !10)
|
||||
// CHECK:STDOUT: !21 = !DILocation(line: 10, column: 5, scope: !18)
|
||||
// CHECK:STDOUT: !22 = !{!19}
|
||||
// CHECK:STDOUT: !23 = distinct !DISubprogram(name: "Doit", linkageName: "_CDoit.B.Main:I.Main", scope: null, file: !8, line: 15, type: !12, spFlags: DISPFlagDefinition, unit: !9, retainedNodes: !27)
|
||||
// CHECK:STDOUT: !24 = !DILocalVariable(arg: 1, scope: !23, type: !10)
|
||||
// CHECK:STDOUT: !26 = !DILocation(line: 15, column: 5, scope: !23)
|
||||
// CHECK:STDOUT: !27 = !{!24}
|
||||
// CHECK:STDOUT: !28 = distinct !DISubprogram(name: "__destroy_thunk", linkageName: "_C__destroy_thunk:thunk.A.Main", scope: null, file: !8, line: 8, type: !12, spFlags: DISPFlagDefinition, unit: !9, retainedNodes: !31)
|
||||
// CHECK:STDOUT: !29 = !DILocalVariable(arg: 1, scope: !28, type: !10)
|
||||
// CHECK:STDOUT: !30 = !DILocation(line: 8, column: 1, scope: !28)
|
||||
// CHECK:STDOUT: !31 = !{!29}
|
||||
// CHECK:STDOUT: !32 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.cb8adced19392b99:core.Destroy.Core", scope: null, file: !8, line: 8, type: !12, spFlags: DISPFlagDefinition, unit: !9, retainedNodes: !35)
|
||||
// CHECK:STDOUT: !33 = !DILocalVariable(arg: 1, scope: !32, type: !10)
|
||||
// CHECK:STDOUT: !34 = !DILocation(line: 8, column: 1, scope: !32)
|
||||
// CHECK:STDOUT: !35 = !{!33}
|
||||
// CHECK:STDOUT: !36 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.5a23cc09585c55d2:core.Destroy.Core", scope: null, file: !8, line: 8, type: !12, spFlags: DISPFlagDefinition, unit: !9, retainedNodes: !39)
|
||||
// CHECK:STDOUT: !37 = !DILocalVariable(arg: 1, scope: !36, type: !10)
|
||||
// CHECK:STDOUT: !38 = !DILocation(line: 8, column: 1, scope: !36)
|
||||
// CHECK:STDOUT: !39 = !{!37}
|
||||
// CHECK:STDOUT: !40 = distinct !DISubprogram(name: "__destroy_thunk", linkageName: "_C__destroy_thunk:thunk.B.Main", scope: null, file: !8, line: 13, type: !12, spFlags: DISPFlagDefinition, unit: !9, retainedNodes: !43)
|
||||
// CHECK:STDOUT: !41 = !DILocalVariable(arg: 1, scope: !40, type: !10)
|
||||
// CHECK:STDOUT: !42 = !DILocation(line: 13, column: 1, scope: !40)
|
||||
// CHECK:STDOUT: !43 = !{!41}
|
||||
// CHECK:STDOUT: !44 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.8c4b83ecd900f1ea:core.Destroy.Core", scope: null, file: !8, line: 13, type: !12, spFlags: DISPFlagDefinition, unit: !9, retainedNodes: !47)
|
||||
// CHECK:STDOUT: !45 = !DILocalVariable(arg: 1, scope: !44, type: !10)
|
||||
// CHECK:STDOUT: !46 = !DILocation(line: 13, column: 1, scope: !44)
|
||||
// CHECK:STDOUT: !47 = !{!45}
|
||||
// CHECK:STDOUT: !48 = distinct !DISubprogram(name: "F__carbon_thunk.26f2099a79512a5d", linkageName: "_CF__carbon_thunk.26f2099a79512a5d.Main", scope: null, file: !8, line: 19, type: !12, spFlags: DISPFlagDefinition, unit: !9, retainedNodes: !51)
|
||||
// CHECK:STDOUT: !49 = !DILocalVariable(arg: 1, scope: !48, type: !10)
|
||||
// CHECK:STDOUT: !50 = !DILocation(line: 19, column: 1, scope: !48)
|
||||
// CHECK:STDOUT: !51 = !{!49}
|
||||
// CHECK:STDOUT: !52 = distinct !DISubprogram(name: "F__carbon_thunk.7a3b9f04ddf4269e", linkageName: "_CF__carbon_thunk.7a3b9f04ddf4269e.Main", scope: null, file: !8, line: 19, type: !12, spFlags: DISPFlagDefinition, unit: !9, retainedNodes: !55)
|
||||
// CHECK:STDOUT: !53 = !DILocalVariable(arg: 1, scope: !52, type: !10)
|
||||
// CHECK:STDOUT: !54 = !DILocation(line: 19, column: 1, scope: !52)
|
||||
// CHECK:STDOUT: !55 = !{!53}
|
||||
// CHECK:STDOUT: !56 = distinct !DISubprogram(name: "Run", linkageName: "main", scope: null, file: !8, line: 32, type: !15, spFlags: DISPFlagDefinition, unit: !9)
|
||||
// CHECK:STDOUT: !57 = !DILocation(line: 33, column: 3, scope: !56)
|
||||
// CHECK:STDOUT: !58 = !DILocation(line: 32, column: 1, scope: !56)
|
||||
// CHECK:STDOUT: !59 = distinct !DISubprogram(name: "F", linkageName: "_CF.Main.6662a1ffb773360a", scope: null, file: !8, line: 19, type: !12, spFlags: DISPFlagDefinition, unit: !9, retainedNodes: !64)
|
||||
// CHECK:STDOUT: !60 = !DILocalVariable(arg: 1, scope: !59, type: !10)
|
||||
// CHECK:STDOUT: !62 = !DILocation(line: 20, column: 3, scope: !59)
|
||||
// CHECK:STDOUT: !63 = !DILocation(line: 19, column: 1, scope: !59)
|
||||
// CHECK:STDOUT: !64 = !{!60}
|
||||
// CHECK:STDOUT: !65 = distinct !DISubprogram(name: "F", linkageName: "_CF.Main.d53b17eed3ce903c", scope: null, file: !8, line: 19, type: !12, spFlags: DISPFlagDefinition, unit: !9, retainedNodes: !70)
|
||||
// CHECK:STDOUT: !66 = !DILocalVariable(arg: 1, scope: !65, type: !10)
|
||||
// CHECK:STDOUT: !68 = !DILocation(line: 20, column: 3, scope: !65)
|
||||
// CHECK:STDOUT: !69 = !DILocation(line: 19, column: 1, scope: !65)
|
||||
// CHECK:STDOUT: !70 = !{!66}
|
||||
// CHECK:STDOUT: !71 = !{!"Simple C++ TBAA"}
|
||||
// CHECK:STDOUT: !72 = !{!"omnipotent char", !71, i64 0}
|
||||
// CHECK:STDOUT: !73 = !{!"any pointer", !72, i64 0}
|
||||
// CHECK:STDOUT: !74 = !{!"p1 _ZTSN6Carbon4Main1AE", !73, i64 0}
|
||||
// CHECK:STDOUT: !75 = !{!74, !74, i64 0}
|
||||
// CHECK:STDOUT: !76 = !{!"p1 _ZTSN6Carbon4Main1BE", !73, i64 0}
|
||||
// CHECK:STDOUT: !77 = !{!76, !76, i64 0}
|
||||
// CHECK:STDOUT: !78 = !{i32 8, !"PIC Level", i32 2}
|
||||
// CHECK:STDOUT: !79 = !{i32 7, !"PIE Level", i32 2}
|
||||
// CHECK:STDOUT: !80 = !{i32 7, !"uwtable", i32 2}
|
||||
// CHECK:STDOUT: !81 = !{!"int", !72, i64 0}
|
||||
// CHECK:STDOUT: !82 = !{!"__libc_errno", !81, i64 0}
|
||||
// CHECK:STDOUT: !83 = !{!82, !81, i64 0}
|
||||
// CHECK:STDOUT: !6 = !DIFile(filename: "min_prelude/parts/destroy.carbon", directory: "")
|
||||
// CHECK:STDOUT: !14 = !DIFile(filename: "generic_type_impls_interface.carbon", directory: "")
|
||||
// CHECK:STDOUT: !15 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !14, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
|
||||
// CHECK:STDOUT: !16 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)
|
||||
// CHECK:STDOUT: !17 = !{null, !16}
|
||||
// CHECK:STDOUT: !18 = !DISubroutineType(types: !17)
|
||||
// CHECK:STDOUT: !19 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
|
||||
// CHECK:STDOUT: !20 = !{!19}
|
||||
// CHECK:STDOUT: !21 = !DISubroutineType(types: !20)
|
||||
// CHECK:STDOUT: !24 = distinct !DISubprogram(name: "Doit", linkageName: "_CDoit.A.Main:I.Main", scope: null, file: !14, line: 10, type: !18, spFlags: DISPFlagDefinition, unit: !15, retainedNodes: !28)
|
||||
// CHECK:STDOUT: !25 = !DILocalVariable(arg: 1, scope: !24, type: !16)
|
||||
// CHECK:STDOUT: !27 = !DILocation(line: 10, column: 5, scope: !24)
|
||||
// CHECK:STDOUT: !28 = !{!25}
|
||||
// CHECK:STDOUT: !29 = distinct !DISubprogram(name: "Doit", linkageName: "_CDoit.B.Main:I.Main", scope: null, file: !14, line: 15, type: !18, spFlags: DISPFlagDefinition, unit: !15, retainedNodes: !33)
|
||||
// CHECK:STDOUT: !30 = !DILocalVariable(arg: 1, scope: !29, type: !16)
|
||||
// CHECK:STDOUT: !32 = !DILocation(line: 15, column: 5, scope: !29)
|
||||
// CHECK:STDOUT: !33 = !{!30}
|
||||
// CHECK:STDOUT: !34 = distinct !DISubprogram(name: "__destroy_thunk", linkageName: "_C__destroy_thunk:thunk.A.Main", scope: null, file: !14, line: 8, type: !18, spFlags: DISPFlagDefinition, unit: !15, retainedNodes: !37)
|
||||
// CHECK:STDOUT: !35 = !DILocalVariable(arg: 1, scope: !34, type: !16)
|
||||
// CHECK:STDOUT: !36 = !DILocation(line: 8, column: 1, scope: !34)
|
||||
// CHECK:STDOUT: !37 = !{!35}
|
||||
// CHECK:STDOUT: !38 = distinct !DISubprogram(name: "__destroy_thunk", linkageName: "_C__destroy_thunk:thunk.B.Main", scope: null, file: !14, line: 13, type: !18, spFlags: DISPFlagDefinition, unit: !15, retainedNodes: !41)
|
||||
// CHECK:STDOUT: !39 = !DILocalVariable(arg: 1, scope: !38, type: !16)
|
||||
// CHECK:STDOUT: !40 = !DILocation(line: 13, column: 1, scope: !38)
|
||||
// CHECK:STDOUT: !41 = !{!39}
|
||||
// CHECK:STDOUT: !42 = distinct !DISubprogram(name: "F__carbon_thunk.26f2099a79512a5d", linkageName: "_CF__carbon_thunk.26f2099a79512a5d.Main", scope: null, file: !14, line: 19, type: !18, spFlags: DISPFlagDefinition, unit: !15, retainedNodes: !45)
|
||||
// CHECK:STDOUT: !43 = !DILocalVariable(arg: 1, scope: !42, type: !16)
|
||||
// CHECK:STDOUT: !44 = !DILocation(line: 19, column: 1, scope: !42)
|
||||
// CHECK:STDOUT: !45 = !{!43}
|
||||
// CHECK:STDOUT: !46 = distinct !DISubprogram(name: "F__carbon_thunk.7a3b9f04ddf4269e", linkageName: "_CF__carbon_thunk.7a3b9f04ddf4269e.Main", scope: null, file: !14, line: 19, type: !18, spFlags: DISPFlagDefinition, unit: !15, retainedNodes: !49)
|
||||
// CHECK:STDOUT: !47 = !DILocalVariable(arg: 1, scope: !46, type: !16)
|
||||
// CHECK:STDOUT: !48 = !DILocation(line: 19, column: 1, scope: !46)
|
||||
// CHECK:STDOUT: !49 = !{!47}
|
||||
// CHECK:STDOUT: !50 = distinct !DISubprogram(name: "Run", linkageName: "main", scope: null, file: !14, line: 32, type: !21, spFlags: DISPFlagDefinition, unit: !15)
|
||||
// CHECK:STDOUT: !51 = !DILocation(line: 33, column: 3, scope: !50)
|
||||
// CHECK:STDOUT: !52 = !DILocation(line: 32, column: 1, scope: !50)
|
||||
// CHECK:STDOUT: !53 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.Core.6b8b385dcf82cc70", scope: null, file: !6, line: 32, type: !18, spFlags: DISPFlagDefinition, unit: !15, retainedNodes: !59)
|
||||
// CHECK:STDOUT: !54 = !DILocalVariable(arg: 1, scope: !53, type: !16)
|
||||
// CHECK:STDOUT: !58 = !DILocation(line: 32, column: 1, scope: !53)
|
||||
// CHECK:STDOUT: !59 = !{!54}
|
||||
// CHECK:STDOUT: !60 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.Core.6579a5013ba3dcd2", scope: null, file: !6, line: 32, type: !18, spFlags: DISPFlagDefinition, unit: !15, retainedNodes: !66)
|
||||
// CHECK:STDOUT: !61 = !DILocalVariable(arg: 1, scope: !60, type: !16)
|
||||
// CHECK:STDOUT: !65 = !DILocation(line: 32, column: 1, scope: !60)
|
||||
// CHECK:STDOUT: !66 = !{!61}
|
||||
// CHECK:STDOUT: !67 = distinct !DISubprogram(name: "F", linkageName: "_CF.Main.6662a1ffb773360a", scope: null, file: !14, line: 19, type: !18, spFlags: DISPFlagDefinition, unit: !15, retainedNodes: !72)
|
||||
// CHECK:STDOUT: !68 = !DILocalVariable(arg: 1, scope: !67, type: !16)
|
||||
// CHECK:STDOUT: !70 = !DILocation(line: 20, column: 3, scope: !67)
|
||||
// CHECK:STDOUT: !71 = !DILocation(line: 19, column: 1, scope: !67)
|
||||
// CHECK:STDOUT: !72 = !{!68}
|
||||
// CHECK:STDOUT: !73 = distinct !DISubprogram(name: "F", linkageName: "_CF.Main.d53b17eed3ce903c", scope: null, file: !14, line: 19, type: !18, spFlags: DISPFlagDefinition, unit: !15, retainedNodes: !78)
|
||||
// CHECK:STDOUT: !74 = !DILocalVariable(arg: 1, scope: !73, type: !16)
|
||||
// CHECK:STDOUT: !76 = !DILocation(line: 20, column: 3, scope: !73)
|
||||
// CHECK:STDOUT: !77 = !DILocation(line: 19, column: 1, scope: !73)
|
||||
// CHECK:STDOUT: !78 = !{!74}
|
||||
// CHECK:STDOUT: !79 = !{!"Simple C++ TBAA"}
|
||||
// CHECK:STDOUT: !80 = !{!"omnipotent char", !79, i64 0}
|
||||
// CHECK:STDOUT: !81 = !{!"any pointer", !80, i64 0}
|
||||
// CHECK:STDOUT: !82 = !{!"p1 _ZTSN6Carbon4Main1AE", !81, i64 0}
|
||||
// CHECK:STDOUT: !83 = !{!82, !82, i64 0}
|
||||
// CHECK:STDOUT: !84 = !{!"p1 _ZTSN6Carbon4Main1BE", !81, i64 0}
|
||||
// CHECK:STDOUT: !85 = !{!84, !84, i64 0}
|
||||
// CHECK:STDOUT: !86 = !{i32 8, !"PIC Level", i32 2}
|
||||
// CHECK:STDOUT: !87 = !{i32 7, !"PIE Level", i32 2}
|
||||
// CHECK:STDOUT: !88 = !{i32 7, !"uwtable", i32 2}
|
||||
// CHECK:STDOUT: !89 = !{!"int", !80, i64 0}
|
||||
// CHECK:STDOUT: !90 = !{!"__libc_errno", !89, i64 0}
|
||||
// CHECK:STDOUT: !91 = !{!90, !89, i64 0}
|
||||
// CHECK:STDOUT:
|
||||
Reference in new issue
Block a user