This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy] Rename variable names "Section" to "Sec". NFC
ClosedPublic

Authored by MaskRay on Sep 3 2019, 10:50 PM.

Details

Summary

"Section" can refer to the type llvm::objcopy::elf::Section or the
variable name. Rename it to "Sec" for clarity. "Sec" is already used a
lot, so this change improves consistency as well.

Also change auto to const SectionBase for readability.

Diff Detail

Repository
rL LLVM

Event Timeline

MaskRay created this revision.Sep 3 2019, 10:50 PM
grimar accepted this revision.Sep 4 2019, 1:34 AM

LGTM

tools/llvm-objcopy/ELF/Object.cpp
1293 ↗(On Diff #218594)

nit: no need to have curly bracers around this single line.

This revision is now accepted and ready to land.Sep 4 2019, 1:34 AM
MaskRay updated this revision to Diff 218607.Sep 4 2019, 1:41 AM
MaskRay marked an inline comment as done.

Delete a pair of curly braces

This revision was automatically updated to reflect the committed changes.