fix recording of source locations
authorAndy Wingo <wingo@pobox.com>
Sun, 3 Aug 2008 12:03:47 +0000 (14:03 +0200)
committerAndy Wingo <wingo@pobox.com>
Sun, 3 Aug 2008 12:03:47 +0000 (14:03 +0200)
commit96969dc1d645db882768da14f47ce8a4fc699f08
tree7a2c2d4a621820583163d5f3d024665d165b9377
parent427d4a0c51e4e186fa20b7d85dccf77b5dae8c88
fix recording of source locations

* module/language/scheme/translate.scm (translate, trans)
  (make-pmatch-transformers): When recursing into subexpressions, get the
  appropriate source location information.
  (location): Include the source filename in the location information.

* module/system/il/compile.scm (codegen): Record source locations in more
  cases. (This information ends up being part of the procedure metadata,
  not the actual codepath.)

* module/system/il/glil.scm (unparse): Don't destructure the source
  locations (it's a vector now).
module/language/scheme/translate.scm
module/system/il/compile.scm
module/system/il/glil.scm