This is a mechanical change generated by
perl -i -pe s/SymbolBody/Symbol/g $(git grep -l SymbolBody lld/ELF lld/COFF)
and clang-format-diff.
Paths
| Differential D39459
Rename SymbolBody -> Symbol. ClosedPublic Authored by ruiu on Oct 31 2017, 10:13 AM.
Details Summary This is a mechanical change generated by perl -i -pe s/SymbolBody/Symbol/g $(git grep -l SymbolBody lld/ELF lld/COFF) and clang-format-diff.
Diff Detail
Event TimelineHerald added subscribers: fedor.sergeev, kbarton, javed.absar and 5 others. · View Herald TranscriptOct 31 2017, 10:13 AM Comment Actions Thanks for including the steps you used to effect the mechanical change! Having maintained long-lived derived branches of open source projects in the past I've found that sort of thing very helpful. I did not review in detail but on a skim found no errors. Comment Actions I reviewed first few files and I think for me naming is confusing.
Comment Actions I intentionally avoided renaming variables to make this a mechanical change. I'll rename variables later, but I don't want to do that in this patch. Comment Actions
I am sorry but I really do not see why we would want to land this patch as is. Current situation is that SymbolBody is used everywhere and you are trying to rename it I realize that doing such change manually is much more time consuming. And my suggestion is next. Comment Actions Sorry Geroge, but I completely disagree with you. Renaming variables needs human judgement, and mixing it with a mechanical change is a bad idea. We really should submit this first and then rename variables in follow-up patches. Making a variable renaming change prior to submitting this change doesn't make sense because you can easily get the idea what it would look like. Actually creating a patch just increases the amount of human labor work because I would need to maintain it during review, and it would be painful as it would conflict with a lot of other patches. Please do not overthink about this patch. We really don't need any clever planning at the moment. Comment Actions
Ok. Probably I misunderstood the idea of this review. So if I correctly understand it now it was to show how renaming from SymbolBody to Symbol generally looks like in code. This revision is now accepted and ready to land.Nov 3 2017, 12:36 AM Closed by commit rL317370: Rename SymbolBody -> Symbol (authored by ruiu). · Explain WhyNov 3 2017, 2:22 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 121553 lld/trunk/COFF/Chunks.h
lld/trunk/COFF/Chunks.cpp
lld/trunk/COFF/Config.h
lld/trunk/COFF/Driver.h
lld/trunk/COFF/Driver.cpp
lld/trunk/COFF/DriverUtils.cpp
lld/trunk/COFF/ICF.cpp
lld/trunk/COFF/InputFiles.h
lld/trunk/COFF/InputFiles.cpp
lld/trunk/COFF/LTO.cpp
lld/trunk/COFF/MapFile.cpp
lld/trunk/COFF/MarkLive.cpp
lld/trunk/COFF/PDB.cpp
lld/trunk/COFF/SymbolTable.h
lld/trunk/COFF/SymbolTable.cpp
lld/trunk/COFF/Symbols.h
lld/trunk/COFF/Symbols.cpp
lld/trunk/COFF/Writer.cpp
lld/trunk/ELF/Arch/AArch64.cpp
lld/trunk/ELF/Arch/AMDGPU.cpp
lld/trunk/ELF/Arch/ARM.cpp
lld/trunk/ELF/Arch/AVR.cpp
lld/trunk/ELF/Arch/Mips.cpp
lld/trunk/ELF/Arch/PPC.cpp
lld/trunk/ELF/Arch/PPC64.cpp
lld/trunk/ELF/Arch/SPARCV9.cpp
lld/trunk/ELF/Arch/X86.cpp
lld/trunk/ELF/Arch/X86_64.cpp
lld/trunk/ELF/Driver.cpp
lld/trunk/ELF/GdbIndex.cpp
lld/trunk/ELF/ICF.cpp
lld/trunk/ELF/InputFiles.h
lld/trunk/ELF/InputFiles.cpp
lld/trunk/ELF/InputSection.h
lld/trunk/ELF/InputSection.cpp
lld/trunk/ELF/LTO.cpp
lld/trunk/ELF/LinkerScript.h
lld/trunk/ELF/LinkerScript.cpp
lld/trunk/ELF/MapFile.cpp
lld/trunk/ELF/MarkLive.cpp
lld/trunk/ELF/OutputSections.h
lld/trunk/ELF/OutputSections.cpp
lld/trunk/ELF/Relocations.h
lld/trunk/ELF/Relocations.cpp
lld/trunk/ELF/SymbolTable.h
lld/trunk/ELF/SymbolTable.cpp
lld/trunk/ELF/Symbols.h
lld/trunk/ELF/Symbols.cpp
lld/trunk/ELF/SyntheticSections.h
lld/trunk/ELF/SyntheticSections.cpp
lld/trunk/ELF/Target.h
lld/trunk/ELF/Target.cpp
lld/trunk/ELF/Thunks.h
lld/trunk/ELF/Thunks.cpp
lld/trunk/ELF/Writer.cpp
|