scop_extract_from_C_source: take TargetOptions object from CompilerInstance
commitb629e20e7328615251a64fabb32f66f29d6ac6d3
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 4 Nov 2012 09:31:44 +0000 (4 10:31 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 4 Nov 2012 09:31:44 +0000 (4 10:31 +0100)
treeb2774024aec75a79f77a3bf958266f5c8c24146b
parent10bf7f25e85c3d0082d68214b267a5f904fd561e
scop_extract_from_C_source: take TargetOptions object from CompilerInstance

The memory management of TargetOptions has changed in recent clangs.
Taking TargetOptions from the CompilerInstance seems to work in both
older and newer versions of clang.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
pet.cc