diff options
Diffstat (limited to 'usr/austin/eval/value.go')
-rw-r--r-- | usr/austin/eval/value.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/austin/eval/value.go b/usr/austin/eval/value.go index 9ca09cd35..5849c16d8 100644 --- a/usr/austin/eval/value.go +++ b/usr/austin/eval/value.go @@ -32,6 +32,11 @@ func (v *boolV) Set(x bool) { *v = boolV(x); } +func (t *boolType) value(v bool) BoolValue { + res := boolV(v); + return &res; +} + /* * Uint */ @@ -145,8 +150,8 @@ func (v *uintptrV) Set(x uint64) { } func (t *uintType) value(v uint64) UintValue { - // TODO(austin) This executes are run-time, even though - // virtually all of the logic can be done at type-check time. + // TODO(austin) The 'value' methods are only used for + // testing right now. Get rid of them. // TODO(austin) Deal with named types switch Type(t) { case Uint8Type: |