On 6/27/20 5:33 AM, Shuai Wang via Gcc wrote:
virtual unsigned int execute(function *fun) override

which has no idea about the .C file information. In LLVM all .C files are
roughly maintained in separate "modules" but I just don't know how to
access such information in GIMPLE.

Hey.

Please take a look at coverage_begin_function (unsigned lineno_checksum, 
unsigned cfg_checksum).
Note that situation can be more complicated as a function can come up from a 
header file.
Or you may experiment using aux_base_name.

Martin

Reply via email to