Skip to content

Commit

Permalink
cmd/ll2dot: switch to graphism/exp/cfg library
Browse files Browse the repository at this point in the history
  • Loading branch information
mewmew committed Feb 9, 2018
1 parent 9e9587c commit b96fa2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/ll2dot/main.go
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ import (
"path/filepath"
"strings"

"github.com/decomp/decomp/graph/cfg"
"github.com/graphism/exp/cfg"
"github.com/llir/llvm/asm"
"github.com/llir/llvm/ir"
"github.com/mewkiz/pkg/pathutil"
@@ -141,7 +141,7 @@ func ll2dot(llPath string, funcNames map[string]bool, force, img bool) error {

// Generate control flow graph.
dbg.Printf("parsing function %q.", f.Name)
g := cfg.New(f)
g := cfg.NewGraphFromFunc(f)

// Store DOT graph.
if err := storeCFG(g, f.Name, dotDir, img); err != nil {

0 comments on commit b96fa2e

Please sign in to comment.