This is an archive of the discontinued LLVM Phabricator instance.

Fix llvm coding style and add an accessor for isLittleEndian
ClosedPublic

Authored by rastogishubham on Sep 20 2022, 10:29 AM.

Details

Summary

In class DWARFUnit, the bool member isLittleEndian does not follow the LLVM coding standards, this patch fixes the casing style and adds an accessor for it

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 10:29 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
rastogishubham requested review of this revision.Sep 20 2022, 10:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 10:29 AM

The change is fine, but since the new API isn't used anywhere, we should at the very least add a unit test for it.

Added a quick test for isLittleEndian() testing

aprantl accepted this revision.Sep 20 2022, 4:52 PM

Thanks!

This revision is now accepted and ready to land.Sep 20 2022, 4:52 PM

What's the motivation for adding the new API, if it's unused? (got a link to a review that's going to dad usage for it/motivates its addition?)