This is an archive of the discontinued LLVM Phabricator instance.

[ADT] Remove deprecated `llvm::array_lengthof`
ClosedPublic

Authored by jloser on Nov 19 2022, 9:04 PM.

Details

Summary

llvm::array_lengthof was marked deprecated a bit over two months ago in
5758c824dab4851fd061201483987b338c051417. Now, finally remove it. Since this
function was the only one in STLArrayExtras.h, get rid of the whole header.

Diff Detail

Event Timeline

jloser created this revision.Nov 19 2022, 9:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 19 2022, 9:04 PM
Herald added a subscriber: StephenFan. · View Herald Transcript
jloser requested review of this revision.Nov 19 2022, 9:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 19 2022, 9:04 PM
MaskRay accepted this revision.EditedNov 19 2022, 9:40 PM

D118342 (2022-01) moved the function to STLArrayExtras.h . This function should have very few users now (I made some downstream inspection in https://reviews.llvm.org/D133502#3777981). D133502 deprecated the function.

This revision is now accepted and ready to land.Nov 19 2022, 9:40 PM
This revision was automatically updated to reflect the committed changes.