pet_scop: keep track of start and end file offsets of the extracted scop
commit6c48ded31e4332dc252b44e117baadddc978ed78
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 24 Jan 2013 14:20:43 +0000 (24 15:20 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 8 Feb 2013 15:53:51 +0000 (8 16:53 +0100)
tree54d9a442c0aff0e2062c95116d9eaa7e15f8ab5b
parentf843c34c9cd74830a5e17e301551fa9e9a2a5644
pet_scop: keep track of start and end file offsets of the extracted scop

This should make life easier on users of pet that want to replace
the original scop by transformed code.  In particular, if the scop
was detected using --autodetect then it was nearly impossible
for a user to figure out which part of the input corresponds to the scop.

We do not verify the values of these offsets in our test cases
because the exact offsets may be slightly different for different
versions of clang.  In particular, we use some utility functions
in newer versions of clang and try to mimic them for older versions
of clang.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
configure.ac
emit.c
include/pet.h
scan.cc
scop.c
scop.h