Hi,<br>      I am new to LLVM infrastructure. Recently I am trying to set the debug info for an instruction. The main aim is to set the source line number of an instruction. Can anyone please show how to do that?<br>      I think  that setMetadata method in Instruction class is to be used. But how do I create MDNode* consisting of desired source line number. Source line number can be extracted from the instruction-debug-info using getMetadata method and then using getLineNumber method from DILocation class. Unfortunately DILocation class does not have any function like setLinenumber.<br>
<br><br clear="all">Abhirup Ghosh<br>M. Tech<br>Department of Computer Science & Engg.<br>IIT, Bombay<br>email - <a href="mailto:abhirupju@gmail.com">abhirupju@gmail.com</a> , <a href="mailto:abhirup@cse.iitb.ac.in">abhirup@cse.iitb.ac.in</a><br>
Contact - 9920735181<br>