compiler: Define and use backend-independent Location class.
authorSanjoy Das <thedigitalangel@gmail.com>
Tue, 29 Nov 2011 19:10:50 +0000 (19:10 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 29 Nov 2011 19:10:50 +0000 (19:10 +0000)
commit8afa2bfbdc60088acd7f199245244890a6e7773e
treef79cf7c9d2d4e5b74c516201a60c5753fe79c93f
parent09ad58e618b0145ed98ee081ffc8117824390972
compiler: Define and use backend-independent Location class.

From Sanjoy Das.

* go-location.h: New file.
* go-linemap.cc: New file.
* go-gcc.cc: Change all uses of source_location to Location.
* Make-lang.in (GO_OBJS): Add go/go-linemap.o.
(GO_LINEMAP_H): New variable.
(GO_LEX_H): Use $(GO_LINEMAP_H).
(GO_GOGO_H, GO_TYPES_H, GO_IMPORT_H): Likewise.
(go/go-linemap.o): New target.

Co-Authored-By: Ian Lance Taylor <iant@google.com>
From-SVN: r181813
29 files changed:
gcc/go/ChangeLog
gcc/go/Make-lang.in
gcc/go/go-gcc.cc
gcc/go/go-linemap.cc [new file with mode: 0644]
gcc/go/go-location.h [new file with mode: 0644]
gcc/go/gofrontend/backend.h
gcc/go/gofrontend/dataflow.cc
gcc/go/gofrontend/export.cc
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/go-linemap.h [new file with mode: 0644]
gcc/go/gofrontend/go.cc
gcc/go/gofrontend/gogo-tree.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/import-archive.cc
gcc/go/gofrontend/import.cc
gcc/go/gofrontend/import.h
gcc/go/gofrontend/lex.cc
gcc/go/gofrontend/lex.h
gcc/go/gofrontend/parse.cc
gcc/go/gofrontend/parse.h
gcc/go/gofrontend/runtime.cc
gcc/go/gofrontend/runtime.h
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/statements.h
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h
gcc/go/gofrontend/unsafe.cc