[PATCH] D28047: Remove the '-disable-llvm-passes' flag (which I didn't even know existed, and I suspect many others aren't aware of either) and strength '-disable-llvm-optzns' to do the same thing.

Chandler Carruth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 22 11:18:54 PST 2016


chandlerc added a comment.

In https://reviews.llvm.org/D28047#629824, @mehdi_amini wrote:

> In https://reviews.llvm.org/D28047#629746, @rnk wrote:
>
> > How about standardizing on -disable-llvm-passes instead of -disable-llvm-optzns? I never liked "optzns" and can't remember how to spell it. Also, this flag disables LLVM instrumentation passes (ASan) as well as optimization passes, so I think -disable-llvm-passes is the better name.
>
>
> I agree with that.
>  To be friendly with developers/users we could print an error mentioning to use `-disable-llvm-passes` when they try to use `-disable-llvm-optzns` (which we accept as a `-mllvm -disable-llvm-optzns` hardcoded in the driver by the way).


I only have a mild preference for how we spell the name based on the fact that i've told people to use -disable-llvm-optzns for years. If we want to go with ...-passes, fine with me.

I'll probably just add an alias so that you can use either spelling, but change the tests to consolidate on whichever spelling we end up with.

SG? I can regenerate the patch if desired, but it'll just be a lot of perl...


https://reviews.llvm.org/D28047





More information about the cfe-commits mailing list