Descriptiongo.tools/ssa: fix a package-level var initialization order bug.
buildDecl was visiting all decls in source order, but the spec
calls for visiting all vars and init() funcs in order, then
all remaining functions. These two passes are now called
buildInit(), buildFuncDecl().
+ Test.
Also:
- Added workaround to gcimporter for Func with pkg==nil.
- Prog.concreteMethods has been merged into Pkg.values.
- Prog.concreteMethod() renamed declaredFunc().
- s/mfunc/obj/ (name cleanup from recent gri CL)
Patch Set 1 #Patch Set 2 : diff -r eb1be81dc991 https://code.google.com/p/go.tools #Patch Set 3 : diff -r eb1be81dc991 https://code.google.com/p/go.tools #Patch Set 4 : diff -r eb1be81dc991 https://code.google.com/p/go.tools #Patch Set 5 : diff -r eb1be81dc991 https://code.google.com/p/go.tools #
Total comments: 1
Patch Set 6 : diff -r eb1be81dc991 https://code.google.com/p/go.tools #
MessagesTotal messages: 3
|