This is an archive of the discontinued LLVM Phabricator instance.

Rename AttributeSetImpl::NumAttrs and AttributeSetImpl::getNumAttributes to reflect that they work on slots rather than attributes. NFC
ClosedPublic

Authored by deadalnix on Jun 11 2016, 7:00 PM.

Details

Summary

The current naming not only doesn't convey the meaning of what this does, but worse, it convey the wrong meaning. This was a major source of confusion understanding the code, so I'm applying the boy scout rule here and making it better after I leave.

Diff Detail

Repository
rL LLVM

Event Timeline

deadalnix updated this revision to Diff 60453.Jun 11 2016, 7:00 PM
deadalnix retitled this revision from to Rename AttributeSetImpl::NumAttrs and AttributeSetImpl::getNumAttributes to reflect that they work on slots rather than attributes. NFC.
deadalnix updated this object.
deadalnix added reviewers: void, bkramer, whitequark.
This revision was automatically updated to reflect the committed changes.