introduce pet_loc
commite8523b640e005cc2c029f2f742c9c382ddf259e0
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 27 Jan 2014 18:23:50 +0000 (27 19:23 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 24 Mar 2014 16:32:11 +0000 (24 17:32 +0100)
tree4567ba796c75886d22ee0ec70465299b033abe23
parent8dc329ec88a67ed3f81d0b30dbbf3cca7eafeedc
introduce pet_loc

There are currently two places where location information is stored.
We store the line number in a pet_stmt and the start and end offsets
in a pet_scop.  This information is extracted directly from the clang
AST.  In future, we want to extract a pet_scop from an intermediate
pet_tree so we need to attach both pieces of information to a pet_tree.
Combine these two pieces of information into a pet_loc.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
12 files changed:
Makefile.am
emit.c
include/pet.h
loc.c [new file with mode: 0644]
loc.h [new file with mode: 0644]
parse.c
pet.cc
scan.cc
scan.h
scop.c
scop.h
skip.c