]> Cypherpunks repositories - gostls13.git/commitdiff
exp/ssa: fix breakage due to https://code.google.com/p/go/source/detail?r=ca5e5de48173
authorAlan Donovan <adonovan@google.com>
Tue, 29 Jan 2013 00:21:25 +0000 (19:21 -0500)
committerAlan Donovan <adonovan@google.com>
Tue, 29 Jan 2013 00:21:25 +0000 (19:21 -0500)
I don't understand why this didn't show up during my testing.

R=bradfitz
TBR=bradfitz
CC=golang-dev
https://golang.org/cl/7237047

src/pkg/exp/ssa/func.go

index d0c54405166da045c3403ab8c208413f694dd87e..3751839b287a9cfaeecb56601f5249e1b7f8e1db 100644 (file)
@@ -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)