<div dir="ltr"><div><div><div>Is there a simple example of how to add debug metadata to IR using the C++ API?<br><br></div>All I really need right now is the ability to annotate an instruction with line number and file name, although describing variables will be useful later.<br><br></div>It's not clear from reading the include files how to "put it all together".<br><br></div>Unfortunately, the output of my compiler is getting a little large to wade through by hand. I'd love to be able to set a breakpoint  in GDB to file:line in my source language, so as to step through the generated assembly code.<br><br></div>