[llvm-commits] [patch] Add -mtriple to LTO

Nick Lewycky nlewycky at google.com
Mon Aug 9 11:52:38 PDT 2010


On 9 August 2010 11:48, Devang Patel <dpatel at apple.com> wrote:

>
> On Aug 9, 2010, at 11:20 AM, Nick Lewycky wrote:
>
> > 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.
>
> I am not very enthusiastic to have getter+setter method for each flag. That
> said, getting rid of static is a good idea.
>
> 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.
>

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.


>
> -
> Devang
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100809/c85e2eb2/attachment.html>


More information about the llvm-commits mailing list