[fpc-devel] Wrong debug info when using clang backend

Adriaan van Os adriaan at adriaan.biz
Fri Dec 8 04:23:00 CET 2023


Jonas Maebe via fpc-devel wrote:
>> Because of this reason, FPC only uses llvm.dbg.addr. But clang still 
>> uses llvm.dbg.declare, and when I change FPC to use that one, the 
>> debug info for the variables in your test program is correct. So I'll 
>> change FPC to also use llvm.dbg.declare.
> 
> Done.

Just out of curiosity: Clang is by fpc used as a driver program, as it is asier to call it than 
tools like llc, opt and llvm-linker ?

Regards,

Adriaan van Os



More information about the fpc-devel mailing list