[llvm-dev] basic block labels in assembly (.s file)

Tom Stellard via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 1 07:31:27 PST 2015

On Sat, Nov 28, 2015 at 09:48:53PM -0500, Xiangyang Guo via llvm-dev wrote:
> Hi, All,
> If I use 'llc' to generate .s file, I notice usually the basic block labels
> are like ".LBB_number:". Is there a way that I can change the labels to
> other names, for example,  to ".MyLabel_number:" ? I think this should be
> related to AsmPrinter, but I cannot narrow down to certain specific source
> code.

The '.L' prefix comes from the value of your target's MCAsmInfo::PrivateLabelPrefix.
This is configurable.


> Any help and suggestion is appreciated.
> Regards,
> Xiangyang

> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

More information about the llvm-dev mailing list