compiler: prune away gcc-specific linemap usage
authorThan McIntosh <thanm@google.com>
Mon, 10 Oct 2016 17:33:32 +0000 (17:33 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 10 Oct 2016 17:33:32 +0000 (17:33 +0000)
commit71543388eec6aad6fb096b1de16264051cf06d3e
treef8073361e3fb096f990d2672a5480cd3528b458b
parent5d8c099edebfe908256c2bd77a0e2b67182b0f57
compiler: prune away gcc-specific linemap usage

    Add an interface to the go Linemap class to allow clients to ask for the
    line number for a Location (for debugging dumps), so as to move some
    gcc-specific location code into the back end.

    Reviewed-on: https://go-review.googlesource.com/30699

* go-linemap.cc (Gcc_linemap::location_line): New method.

From-SVN: r240942
gcc/go/ChangeLog
gcc/go/go-linemap.cc
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/escape.cc
gcc/go/gofrontend/go-linemap.h