search for: getweakrefdirective

Displaying 3 results from an estimated 3 matches for "getweakrefdirective".

2013 Aug 16
0
[LLVMdev] How do I set WeakDefDirective for a target?
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 s...
2006 Dec 08
0
[LLVMdev] [patch] print ".weak" directive
...Dec 2006 13:00:17 -0000 @@ -640,6 +640,13 @@ printDataDirective(type); EmitConstantValueOnly(CV); O << "\n"; + if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV)) { + if (GV->hasWeakLinkage() || GV->hasExternalWeakLinkage()) { + O << TAI->getWeakRefDirective(); + EmitConstantValueOnly(CV); + O << "\n"; + } + } } The approach looks good, but why do you need both 'hasWeak' and 'hasExternalWeak' here? It seems that this should only check the external weak case. I think what we really want is for the asm...
2006 Dec 07
2
[LLVMdev] [patch] print ".weak" directive
The attached patch makes the ASM printer print the ".weak" directive when a weak symbol is added to a constant pool. I need something similar to it in order to bootstrap gcc on ARM. Any comments? Best Regards, Rafael -------------- next part -------------- A non-text attachment was scrubbed... Name: llvm.patch Type: text/x-patch Size: 1816 bytes Desc: not available URL: