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

Devang Patel dpatel at apple.com
Mon Aug 9 11:48:24 PDT 2010


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.

-
Devang






More information about the llvm-commits mailing list