[PATCH] D13761: [llgo] llgoi: separate evaluation from printing

Andrew Wilkins via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 14 19:18:52 PDT 2015


axw created this revision.
axw added a reviewer: pcc.
axw added a subscriber: llvm-commits.
Herald added a subscriber: axw.

Separate the evaluation of expressions from printing
of results. This is in preparation for splitting the
core of the interpreter out for use in alternative
interpreter frontends.

At the same time, the output is made less noisy in
response to comments on the golang-nuts announcement.
We would ideally print out values using Go syntax,
but this is impractical until we have libgo based on
Go 1.5. When that happens, fmt's %#v will handle
reflect.Value better, and so we can fix/filter type
names to remove automatically generated package names.

http://reviews.llvm.org/D13761

Files:
  cmd/llgoi/llgoi.go
  test/llgoi/arith.test
  test/llgoi/import-source.test
  test/llgoi/import-source2.test
  test/llgoi/interfaces.test
  test/llgoi/maps.test
  test/llgoi/vars.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13761.37441.patch
Type: text/x-patch
Size: 13211 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151015/cc2c74dc/attachment.bin>


More information about the llvm-commits mailing list