You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/LLVM/DIBuilder.swift
+32-19Lines changed: 32 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -534,6 +534,14 @@ public struct DICompileUnit: Metadata {
534
534
}
535
535
}
536
536
537
+
publicstructDIExpression:Metadata{
538
+
internalletllvm:LLVMMetadataRef
539
+
540
+
publicfunc asMetadata()->LLVMMetadataRef{
541
+
return llvm
542
+
}
543
+
}
544
+
537
545
538
546
publicstructDebugLocation:Metadata{
539
547
internalletllvm:LLVMMetadataRef
@@ -600,14 +608,12 @@ public final class DIBuilder {
600
608
}
601
609
602
610
/// Insert a new llvm.dbg.value intrinsic call.
603
-
// FIXME: complex address expression?
604
-
publicfunc insertDebugValueIntrinsicAtEnd(for value:IRValue, at offset:Int, with info:VariableMetadata, at loc:DebugLocation, in bb:BasicBlock, expr:Metadata?=nil){
611
+
publicfunc insertDebugValueIntrinsicAtEnd(for value:IRValue, at offset:Int, with info:VariableMetadata, at loc:DebugLocation, in bb:BasicBlock, expr:DIExpression?=nil){
publicfunc insertDebugValueIntrinsicBefore(for value:IRValue, at offset:Int, with info:VariableMetadata, at loc:DebugLocation, in bb:BasicBlock, expr:Metadata?=nil){
616
+
publicfunc insertDebugValueIntrinsicBefore(for value:IRValue, at offset:Int, with info:VariableMetadata, at loc:DebugLocation, in bb:BasicBlock, expr:DIExpression?=nil){
@@ -674,6 +680,28 @@ public final class DIBuilder {
674
680
returnVariableMetadata(llvm: vari)
675
681
}
676
682
683
+
/// Create debugging information entry for a struct.
684
+
publicfunc createStructType(for type:StructType, in scope:Scope, in file:FileMetadata, at line:Int, flags:DebugInfoFlags=.zero, uniqueID:String)->Metadata{
0 commit comments