This is an archive of the discontinued LLVM Phabricator instance.

OpaquePtr: IRBuilder: Add deprecated attribute on CreateCall methods
AcceptedPublic

Authored by nhaehnle on Feb 15 2020, 12:51 PM.

Details

Summary

Let's not remove them outright just yet, so that other projects get some
more explicit notice that they need to fix their code.

Diff Detail

Event Timeline

nhaehnle created this revision.Feb 15 2020, 12:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 15 2020, 12:51 PM
nhaehnle updated this revision to Diff 246784.Feb 26 2020, 10:31 AM

Rebase on recent IRBuilder changes

Looks good to me - but wouldn't mind @t.p.northover checking here - so pinging him.

Deprecating the APIs as an extra step is basically useless; most projects either build with -Werror or don't pay attention to warnings. Probably very few projects in the middle that would actually be helped. I'd be in favor of just zapping them. If you really think the error for downstream projects needs to be extra-clear, you could provide "= delete" overloads, I guess.

nikic added a subscriber: nikic.May 18 2020, 11:23 AM

Ping. I'm happy with either a removal or deprecation here, but one of them should really go in...

efriedma accepted this revision.May 18 2020, 12:26 PM

LGTM. Deprecation isn't strictly necessary, but it's more friendly to downstream projects, which are very likely to be using IRBuilder.

This revision is now accepted and ready to land.May 18 2020, 12:26 PM