PetScan: extract out pet_expr_access_from_index
commite6fc0607eb1218cd2ff676b50b1d0d046a9e9e06
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 9 Mar 2017 08:54:42 +0000 (9 09:54 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 9 Mar 2017 09:25:40 +0000 (9 10:25 +0100)
treeec0d1b0a8db1136d71b81baaff0f6134bbcb1acd
parent63d519541a52cce7f7a4d70545e64511373f08a7
PetScan: extract out pet_expr_access_from_index

The PetScan::extract_access_expr method from which this function
is derived does not really use anything from the PetScan object.
It only uses the ASTContext that is stored in the object.
Pull it out of the PetScan class such that it can also be used
by the inliner in an upcoming commit.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Makefile.am
expr_plus.cc [new file with mode: 0644]
expr_plus.h [new file with mode: 0644]
scan.cc
scan.h