<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
I'm a little confused over the use of WeakDefDirective & getWeakDefDirective()<br>
as it seems to be used differently to WeakRefDirective & getWeakRefDirective().<br>
<br>
WeakDefDirective seems to be a boolean, used by AsmPrinter::EmitLinkage(), to decide if special stuff needs to be done.<br>
As I just want "weak", I should leave WeakDefDirective as null.<br>
Is this right?<br>
<br>
<br>
It would be nice if there was a additional hasWeakDefDirective that a target could specify (default false).<br>
Also should MCAsmStreamer::EmitSymbolAttribute() emitted MAI->getWeakDefDirective() rather than "\t.weak_definition\t"?<br>
<br>
<br>
Robert<br>
</div>
</body>
</html>