[LLVMdev] AsmPrinter behavior

Nathan Jeffords blunted2night at gmail.com
Thu May 6 22:01:43 PDT 2010


I compile these two lines in llc

@tst1 = internal global [4 x i8] zeroinitializer;
@tst2 = internal global [4 x i8] [i8 0, i8 1, i8 2, i8 3];

@tst1 is emited via MCStreamer::EmitCommonSymbol
while the other is emited via MCStreamer::EmitLabel followed by
MCStreamer::EmitBytes

from what I can tell, only symbols with common linkage should me emitted
by MCStreamer::EmitCommonSymbol,

is this the expected behavior or should I fix it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100506/095f4cb0/attachment.html>


More information about the llvm-dev mailing list