]> granicus.if.org Git - llvm/commit
[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)
commitd9c0638dc32c483a4c13b521a30367f43248943b
tree1cc1899a9c1dafb20ee02264e5a7615f1bbc81cd
parente4c2199967e37c917fb765f71255514d3377a18e
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370852 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
tools/llvm-objcopy/ELF/Object.cpp