[llvm-dev] How to get the symbol of MachineInst ?
PenYiWang via llvm-dev
llvm-dev at lists.llvm.org
Wed Jul 18 19:34:20 PDT 2018
Hi
I want to get the symbol of MachineInst
I found that there is getSymbol () in the MachineBasicBlock class
http://llvm.org/doxygen/classllvm_1_1MachineBasicBlock.html
And also, there is CurrentFnSym in AsmPrinter , CurrentFnSym can let us
get the symbol of MachineFunction
But, how to get the symbol/MCSymbol of a MachineInst ?
I want to write some address of instruction to a section ( in the program )
by MCStreamer::EmitLabel
So I need to get the symbol/MCSymbol of MachineInst , right?
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180719/981f4f4c/attachment.html>
More information about the llvm-dev
mailing list