<div dir="ltr">Hi<div><br></div><div>I want to get the symbol of MachineInst</div><div><br></div><div>I found that there is  getSymbol () in the MachineBasicBlock class </div><div><a href="http://llvm.org/doxygen/classllvm_1_1MachineBasicBlock.html">http://llvm.org/doxygen/classllvm_1_1MachineBasicBlock.html</a><br></div><div><br></div><div>And also, there is CurrentFnSym in AsmPrinter , 

<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">CurrentFnSym<span>  can let us get the symbol of MachineFunction</span></span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span><br></span></span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span>But, how to get the symbol/MCSymbol of a MachineInst ?</span></span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span><br></span></span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span>I want to write some address of instruction to a section ( in the program ) by </span></span>MCStreamer::EmitLabel</div><div><br></div><div>So I need to get the symbol/MCSymbol of MachineInst , right?</div><div><br></div><div>Thank you. </div></div>