[LLVMdev] How do I set WeakDefDirective for a target?

Robert Lytton robert at xmos.com
Fri Aug 16 08:26:19 PDT 2013


Hi,

I'm a little confused over the use of WeakDefDirective & getWeakDefDirective()
as it seems to be used differently to WeakRefDirective & getWeakRefDirective().

WeakDefDirective seems to be a boolean, used by AsmPrinter::EmitLinkage(), to decide if special stuff needs to be done.
As I just want "weak", I should leave WeakDefDirective as null.
Is this right?


It would be nice if there was a additional hasWeakDefDirective that a target could specify (default false).
Also should MCAsmStreamer::EmitSymbolAttribute() emitted MAI->getWeakDefDirective() rather than "\t.weak_definition\t"?


Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130816/5344d2c6/attachment.html>


More information about the llvm-dev mailing list