This is an archive of the discontinued LLVM Phabricator instance.

LLD: ELF: Replace a macro with an inlined function.
ClosedPublic

Authored by ruiu on Mar 31 2015, 11:11 AM.

Details

Reviewers
shankarke
Summary

FINDV4BITMASK macro is defined as a macro so that the macro body is inlined.
We should use inlined functions instead of macros.

Diff Detail

Event Timeline

ruiu updated this revision to Diff 22988.Mar 31 2015, 11:11 AM
ruiu retitled this revision from to LLD: ELF: Replace a macro with an inlined function..
ruiu updated this object.
ruiu edited the test plan for this revision. (Show Details)
ruiu added a reviewer: shankarke.
ruiu set the repository for this revision to rL LLVM.
ruiu added a project: lld.
ruiu added a subscriber: Unknown Object (MLST).
ruiu added a comment.Mar 31 2015, 11:14 AM

By the way, HexagonEncodings.h contains a huge table with hex numbers with zero comments. It's totally undecipherable. Do you mind if I ask you to add a comment there?

shankarke accepted this revision.Mar 31 2015, 11:15 AM
shankarke edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Mar 31 2015, 11:15 AM

The file is a autogenerated file. But sure. I will add a comment.

Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in r233719.