compiler: add location_file
authorIan Lance Taylor <iant@golang.org>
Mon, 29 Oct 2018 18:44:39 +0000 (18:44 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 29 Oct 2018 18:44:39 +0000 (18:44 +0000)
commit943cc2fb6463ab8e06c2f2bcc4281a65e9dc4a78
treed33e568cab7d6f7f5dc3e5d6efa7dbd3ebdb4b6f
parent266ef3613ea80da937a9fc782eb5c3ae8dcabb8f
compiler: add location_file

    Add support for getting the file name from a Location value.  This
    will be used by later work.

    Reviewed-on: https://go-review.googlesource.com/c/145318

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

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