This is an archive of the discontinued LLVM Phabricator instance.

builtins: avoid endian.h in favour of compiler builtins
ClosedPublic

Authored by compnerd on Sep 30 2014, 8:44 PM.

Details

Summary

Use the BYTE_ORDER macro which has been available in GCC since 4.6 and is
available in clang as well.

Diff Detail

Event Timeline

compnerd updated this revision to Diff 14263.Sep 30 2014, 8:44 PM
compnerd retitled this revision from to builtins: avoid endian.h in favour of compiler builtins.
compnerd updated this object.
compnerd edited the test plan for this revision. (Show Details)
compnerd added a reviewer: rengolin.
compnerd added a reviewer: danalbert.
compnerd added a subscriber: Unknown Object (MLST).
danalbert accepted this revision.Oct 13 2014, 12:06 PM
danalbert edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Oct 13 2014, 12:06 PM
rengolin edited edge metadata.Oct 14 2014, 1:26 AM

Sorry it took so long, I completely missed it (even the ping). :(

I believe FreeBSD still uses the old style, but I guess if both compilers support it, it should make no difference, right?

--renato

Has this gone through?

No, sorry, been busy. Ill get this in tomorrow.

compnerd closed this revision.Oct 25 2014, 2:05 PM

Committed as SVN r220626.