[LLVMdev] Non-standard labels

Chris Lattner clattner at apple.com
Sat Sep 18 17:26:25 PDT 2010


On Sep 18, 2010, at 10:52 AM, Yuri Gribov wrote:

> Chris,
> 
> I want to emit code for target which uses non-standard assembler which
> wants labels to look like
>  LAB nop
> instead of
>  LAB:
> 
> I can not do this because labels are emitted by
> MCAsmStreamer::EmitLabel which can not be overriden.

Is this just a textual/syntactic thing?  If so, you should add a bit to MCAsmInfo to indicate that this is the behavior, and MCAsmPrinter should be changed to emit labels in this syntax.

If 'nop' is an instruction which causes bits to be emitted, then a bigger change needs to happen.

-Chris



More information about the llvm-dev mailing list