I'm not sure I entirely follow, but these issues with Subtargets and friends are orthogonal to the GlobalMerge thing, right? Here, if the flags conflict, the "-mno-global-merge" wins, so Module Flags seem like a perfect fit, even though I gather they're not for target features and CPUs and such. -Ahmed
On Fri, Mar 13, 2015 at 3:23 PM, Eric Christopher <[email protected]> wrote: > Hrm. What do you think about requiring that flags like this for LTO are just > required to be passed on the command line rather than left in the module and > subject to module merge? If so, you can just pass the option to the backend > via TargetOptions which will put it on the TargetMachine and make it easy to > grab for the pass manager. > > Thoughts? > > -eric > > > http://reviews.llvm.org/D7968 > > EMAIL PREFERENCES > http://reviews.llvm.org/settings/panel/emailpreferences/ > > _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
