This is an archive of the discontinued LLVM Phabricator instance.

[ADT] Deprecate llvm::Optional::transform
ClosedPublic

Authored by kazu on Dec 14 2022, 6:47 PM.

Details

Summary

I've migrated all known users of llvm::Optional::transform. This
patch deprecates it to facilitate the migration from llvm::Optional to
std::optional.

Diff Detail

Event Timeline

kazu created this revision.Dec 14 2022, 6:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 14 2022, 6:47 PM
kazu requested review of this revision.Dec 14 2022, 6:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 14 2022, 6:47 PM
MaskRay accepted this revision.Dec 15 2022, 12:55 AM

I suspect very few if any project outside llvm-project uses this API, so removing it directly may be fine as well.

This revision is now accepted and ready to land.Dec 15 2022, 12:55 AM
kazu updated this revision to Diff 483210.Dec 15 2022, 8:57 AM

Decided to remove transform instead.

This revision was landed with ongoing or failed builds.Dec 15 2022, 9:25 AM
This revision was automatically updated to reflect the committed changes.