DI: Reverse direction of subprogram -> function edge.
[oota-llvm.git] / bindings / go / llvm / dibuilder.go
index 4ec60738a7ae7df88192a7409022ec1d1769b00a..778c317858368a82c2842aad150d18362d1c75ac 100644 (file)
@@ -189,7 +189,6 @@ type DIFunction struct {
        ScopeLine    int
        Flags        int
        Optimized    bool
-       Function     Value
 }
 
 // CreateCompileUnit creates function debug metadata.
@@ -211,7 +210,6 @@ func (d *DIBuilder) CreateFunction(diScope Metadata, f DIFunction) Metadata {
                C.unsigned(f.ScopeLine),
                C.unsigned(f.Flags),
                boolToCInt(f.Optimized),
-               f.Function.C,
        )
        return Metadata{C: result}
 }