[LLVMdev] AsmPrinter question

Evan Cheng echeng at apple.com
Tue Jan 27 22:37:01 PST 2009


See MachineOperand.h. If a MachineOperand represents an external  
symbol, getSymbolName() returns a string.

Evan

On Jan 27, 2009, at 8:26 PM, Sachin.Punyani at microchip.com wrote:

> Hi All,
>
> I need to print some extra information about libcall names in  
> assembly.  Libcall names are managed as ExternalSymbols in LLVM.
>
> How do I access these ExternalSymbols from Asmprinter?
>
> AsmPrinter uses class Module that lists all the global variables  
> (including extern variables) and functions (include extern  
> functions). But it does not list any information about the libcalls  
> (ExternalSymbols) generated during lowering.
>
> Regards
> Sachin
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090127/58ab1a1d/attachment.html>


More information about the llvm-dev mailing list