1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:54:42 -07:00
go/pointer
Alan Donovan f3eb05bcef go.tools/ssa: eliminate (non-nil) slice constants.
go/types no longer reports a constant value for a slice,
e.g. []byte("foo").

ssa.Const no longer support slice constants, only
bool/string/numeric and nil.

emitConv emits a Convert instruction for string->[]byte
conversions.

Added regression test for bug 6949.

R=gri
CC=golang-codereviews
https://golang.org/cl/50590043
2014-01-13 16:45:46 -05:00
..
testdata go.tools/ssa: eliminate (non-nil) slice constants. 2014-01-13 16:45:46 -05:00
analysis.go go.tools/pointer: replace Config.Print (callback) with a Result.PrintCalls (map). 2013-12-10 09:15:39 -05:00
api.go go.tools/pointer: replace Config.Print (callback) with a Result.PrintCalls (map). 2013-12-10 09:15:39 -05:00
callgraph.go go.tools/pointer: more reflection. 2013-10-17 09:26:44 -04:00
doc.go go.tools/pointer: implement (reflect.Value).Call. 2013-10-29 21:57:53 -04:00
example_test.go go.tools/ssa: fix crash in SSA builder when using GCImporter to satisfy imports (ssadump -build=G). 2014-01-09 14:11:54 -05:00
gen.go go.tools/go/types: use types.ChanDir instead of ast.ChanDir 2013-12-17 15:45:01 -08:00
intrinsics.go go.tools/pointer: implement (reflect.Value).Call. 2013-10-29 21:57:53 -04:00
labels.go go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
pointer_test.go go.tools/ssa: fix crash in SSA builder when using GCImporter to satisfy imports (ssadump -build=G). 2014-01-09 14:11:54 -05:00
print.go go.tools/pointer: use assignable not identical type predicate in reflect.{Send,SetMapIndex,etc} 2013-10-14 13:53:41 -04:00
reflect.go go.tools/go/types: use types.ChanDir instead of ast.ChanDir 2013-12-17 15:45:01 -08:00
solve.go go.tools/pointer: implement (reflect.Value).Call. 2013-10-29 21:57:53 -04:00
TODO go.tools/pointer: make os.Args point to something. 2013-10-01 09:46:33 -04:00
util.go go.tools/go/types: move gcimporter to its own package 2013-11-14 14:11:43 -08:00