This is an archive of the discontinued LLVM Phabricator instance.

PassManager: remove unused parameters. NFC.
AbandonedPublic

Authored by thegameg on Dec 6 2015, 3:44 PM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

thegameg updated this revision to Diff 42020.Dec 6 2015, 3:44 PM
thegameg updated this revision to Diff 42021.
thegameg retitled this revision from to PassManagerInternal: remove unused parameters. NFC..
thegameg updated this object.
thegameg added a reviewer: llvm-commits.
thegameg set the repository for this revision to rL LLVM.
thegameg retitled this revision from PassManagerInternal: remove unused parameters. NFC. to PassManager: remove unused parameters. NFC..

Remove another one from PassManager.

thegameg added a subscriber: llvm-commits.
reames added a subscriber: reames.Dec 7 2015, 10:43 AM

I think this patch - and the others of similar vein you've posted - are
flat out a bad idea. They diminish readability for no gain. Do you
have a good argument for why unnamed parameters are a good idea?

Philip

thegameg added a comment.EditedDec 8 2015, 1:40 AM

The unused parameters cause warinings [-Wunused-parameter].

Would commenting the parameter names, or casting them to void in the
body of the function be a better idea?

The 12/08/2015 10:48, Philip Reames wrote:

Depending on what we decide, this is possibly a warning which should be
fixed, or disabled. Which version of which compiler are you using?

I didn't know about the policy of the warnings for the headers used in
external projects. I'll just disable the warnings on LLVM for now, I guess.

Thank you for your time.

thegameg abandoned this revision.Apr 3 2016, 9:52 AM