diff options
author | Alan Donovan <adonovan@google.com> | 2013-01-28 19:21:25 -0500 |
---|---|---|
committer | Alan Donovan <adonovan@google.com> | 2013-01-28 19:21:25 -0500 |
commit | 8b852c058b150a50871189be359cb500e2671cdb (patch) | |
tree | d25e386dbd5cf48eb859117ad1ebae59eeff1ac4 /src | |
parent | e8683e13806b32406823b1060abd8aea107e28e8 (diff) | |
download | go-8b852c058b150a50871189be359cb500e2671cdb.tar.gz |
exp/ssa: fix breakage due to https://code.google.com/p/go/source/detail?r=ca5e5de48173
I don't understand why this didn't show up during my testing.
R=bradfitz
TBR=bradfitz
CC=golang-dev
https://codereview.appspot.com/7237047
Diffstat (limited to 'src')
-rw-r--r-- | src/pkg/exp/ssa/func.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pkg/exp/ssa/func.go b/src/pkg/exp/ssa/func.go index d0c544051..3751839b2 100644 --- a/src/pkg/exp/ssa/func.go +++ b/src/pkg/exp/ssa/func.go @@ -10,6 +10,18 @@ import ( "os" ) +// Mode bits for additional diagnostics and checking. +// TODO(adonovan): move these to builder.go once submitted. +type BuilderMode uint + +const ( + LogPackages BuilderMode = 1 << iota // Dump package inventory to stderr + LogFunctions // Dump function SSA code to stderr + LogSource // Show source locations as SSA builder progresses + SanityCheckFunctions // Perform sanity checking of function bodies + UseGCImporter // Ignore SourceLoader; use gc-compiled object code for all imports +) + // addEdge adds a control-flow graph edge from from to to. func addEdge(from, to *BasicBlock) { from.Succs = append(from.Succs, to) |