This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Replace 'isDarwin' with 'IsDarwin' based on LLVM naming convention
ClosedPublic

Authored by Xiangling_L on Oct 2 2019, 7:19 AM.

Details

Summary

Replace 'isDarwin' with 'IsDarwin' based on LLVM naming convention

Diff Detail

Repository
rL LLVM

Event Timeline

Xiangling_L created this revision.Oct 2 2019, 7:19 AM

LGTM. New declarations of IsDarwin in this patch are in contexts where there is no existing reference to any IsDarwin that might have been in scope.

This revision is now accepted and ready to land.Oct 2 2019, 8:19 AM
sfertile accepted this revision.Oct 3 2019, 7:17 AM

My suggestion would be to limit the change to the PPCAsmPrinter::EmitInstruction function. We are at the point where I believe we can start removing Darwin support in the PowerPC back end. Fixing the style in PPCAsmPrinter::EmitInstruction make sense since you are modifying the surrounding code and adding new code that uses the variable. Whith the other changes we are probably better to wait and simply remove them, as opposed to renaming them just to remove them shortly after. Either way though the patch LGTM.

This revision was automatically updated to reflect the committed changes.