[LLVMdev] Changing The '.' Used to Prefix Labels in Assembly Output

Ahmed Bougacha ahmed.bougacha at gmail.com
Mon Mar 23 13:11:21 PDT 2015


On Mon, Mar 23, 2015 at 12:46 PM, bill rowe <bill.rowe.ottawa at gmail.com> wrote:
> I'm working on an LLVM back end with output to assembly file (.s). I'm using
> the ARM assembly printer.
> The generated labels (e.g. for a while statement) start with '.' like
> .LBB0_1
> I would like to change the '.' to something else (specifically $$ if it
> matters).
> I see a lot of customizability in targetinfo.cpp but not that particular
> item.
>
> Where should I be looking?

I believe MCAsmInfo is what you're looking for. (for ARM, in
lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp)

-Ahmed

>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



More information about the llvm-dev mailing list