diff --git a/cmd/bin2ll/callgraph.go b/cmd/bin2ll/callgraph.go index 9201508..9b17d61 100644 --- a/cmd/bin2ll/callgraph.go +++ b/cmd/bin2ll/callgraph.go @@ -105,7 +105,7 @@ type Node struct { // DOTAttributes returns the DOT attributes of the node. func (n Node) DOTAttributes() []dot.Attribute { return []dot.Attribute{ - dot.Attribute{Key: "label", Value: fmt.Sprintf("%q", n.Name)}, + {Key: "label", Value: fmt.Sprintf("%q", n.Name)}, } } diff --git a/cmd/h2ll/ll.go b/cmd/h2ll/ll.go index c0fd1f8..2788bfc 100644 --- a/cmd/h2ll/ll.go +++ b/cmd/h2ll/ll.go @@ -32,7 +32,7 @@ func llFuncSigs(module *ir.Module, sigs map[bin.Address]FuncSig, funcAddrs []bin f.Parent = nil f.Blocks = nil f.Metadata = map[string]*metadata.Metadata{ - "addr": &metadata.Metadata{ + "addr": { Nodes: []metadata.Node{&metadata.String{Val: funcAddr.String()}}, }, }