Displaying 1 result from an estimated 1 matches for "emitinstructionannot".
2012 Feb 28
0
[LLVMdev] Getting corresponding c-instruction line number along with ir-instruction in a function's CFG
...nstruction in CFG to their respective c instruction. After surfing a in source of llvm i did the following change in printInstruction() function in llvm/lib/VMCore/AsmWriter.cpp file.  .....void AssemblyWriter::printInstruction(const Instruction &I) {  if (AnnotationWriter) AnnotationWriter->emitInstructionAnnot(&I, Out);
  // Print out indentation for an instruction.  Out << "  ";        if (MDNode *N = I.getMetadata("dbg")) {  			// Code   DILocation Loc(N);                                			// inserted    unsigned Line = Loc.getLineNumber();					// by    Out<<"LN...