[LLVMdev] Changing The '.' Used to Prefix Labels in Assembly Output
ahmed.bougacha at gmail.com
Mon Mar 23 15:26:49 PDT 2015
On Mon, Mar 23, 2015 at 2:18 PM, bill rowe <bill.rowe.ottawa at gmail.com> wrote:
> Thanks. Thats sounds exactly the right thing.
> I couldn't actually find any instance of PrivateLabelPrefix though.
It might not be used directly by ARMMCAsmInfo.cpp, as there's a class
hierarchy mirroring the object file formats/platforms/target
relationships (doxygen is helpful for this kind of thing:
See the MCAsmInfo class declaration for the base class:
> I do
> see PrivateGlobalPrefix which doesn't sound quite as right but was set to
> ".L". Changing it to "$$L" didn't affect anything.
> On Mon, Mar 23, 2015 at 4:11 PM, Ahmed Bougacha <ahmed.bougacha at gmail.com>
>> On Mon, Mar 23, 2015 at 12:46 PM, bill rowe <bill.rowe.ottawa at gmail.com>
>> > 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
>> > _______________________________________________
>> > 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