<div class="gmail_quote">On 9 August 2010 11:48, Devang Patel <span dir="ltr"><<a href="mailto:dpatel@apple.com">dpatel@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><br>
On Aug 9, 2010, at 11:20 AM, Nick Lewycky wrote:<br>
<br>
> I don't like how this works. I'd much rather expose getter+setter methods in the libLTO API and let the non-library program do its own flags processing, etc.<br>
<br>
</div>I am not very enthusiastic to have getter+setter method for each flag. That said, getting rid of static is a good idea.<br>
<br>
BTW, libLTO user has access to llvm::Module so it can set/reset target triple. And libLTO checks module triple. As I understand, Rafael is looking for an override to aid debugging, not a end user knob.<br></blockquote><div>

<br></div><div>Oh, if it's for debugging, then sure, making it a flag in setCodeGenDebugOptions is fine. I was imagining it would be a real end-user control intended to change the triple specified in the Module.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
-<br>
<font color="#888888">Devang<br>
<br>
<br>
</font></blockquote></div><br>