[llvm-objcopy] Rename variable names "Section" to "Sec". NFC
authorFangrui Song <maskray@google.com>
Wed, 4 Sep 2019 08:43:27 +0000 (08:43 +0000)
committerFangrui Song <maskray@google.com>
Wed, 4 Sep 2019 08:43:27 +0000 (08:43 +0000)
commitb8b4fa47971491db63620d75b97d5ea00cd0b0cc
tree8fc57f645d0ceccd58120dc962e647b579bd3695
parentfea532230bf4cf677d0ae6028eedf0135aa8b9e2
[llvm-objcopy] Rename variable names "Section" to "Sec". NFC

"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.

Reviewed By: grimar

Differential Revision: https://reviews.llvm.org/D67143

llvm-svn: 370852
llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
llvm/tools/llvm-objcopy/ELF/Object.cpp