When the debugging info are inserted

Hi all,

if I understand well, under “clang/lib/CodeGen” there are all the modules that generates the IR code from the AST.

I would like to know when the IR code generation is completed and all the debugging information are available in each IR instruction.

Do you have any idea?

Thanks.
Best Regards,
Simone

Debug info creation happens at the same time as code generation. So
when the IR module is complete, so is debug info.

-eric

Ok thanks,

but when the module is complete?
I am taking a look to CodeGenModule.h, look like that when the function Release() is called means that the module is complete, am I right?

Thanks.
Simone