[llvm-commits] [llvm] r103757 - in /llvm/trunk: include/llvm/MC/MCParser/AsmParser.h include/llvm/MC/MCStreamer.h lib/MC/MCAsmStreamer.cpp lib/MC/MCMachOStreamer.cpp lib/MC/MCNullStreamer.cpp lib/MC/MCParser/AsmParser.cpp test/MC/AsmParser/directive_tbss.s

Chris Lattner clattner at apple.com
Sat May 15 20:27:12 PDT 2010


On May 15, 2010, at 3:36 PM, Eric Christopher wrote:
> Yeah, I was pretty unhappy about it and figured I'd be changing it.  The idea is that something like:
> 
> __thread a = 0;
> 
> will turn into:
> 
> .tbss _a+somemangling

Higher level things should handle the mangling.  MCStreamer should correspond to what the assembler parses.

> Another was:
> 
> void EmitTBSSSymbol(MCSymbol Sym, ...., StringRef Mangle)
> 
> but then I'm stuck trying to figure out which symbol I'm mangling.

It should take just a mcsymbol, size, and alignment.  The "mangling" should be handled at a higher level, just like it is for $stub's etc.

-Chris





More information about the llvm-commits mailing list