We normally avoid "switch (Config->EKind)", but in this case I think it is worth it.
It is only executed when there is an error and it allows detemplating a lot of code.
Paths
| Differential D41549
Detemplate reportDuplicate ClosedPublic Authored by • espindola on Dec 22 2017, 4:16 PM.
Details
Diff Detail Event TimelineComment Actions I think it is useful change because allows to, for example, call addRegular from non-templated code This revision is now accepted and ready to land.Dec 23 2017, 12:23 AM
Revision Contents
Diff 128062 ELF/Driver.cpp
ELF/InputFiles.h
ELF/InputFiles.cpp
ELF/InputSection.h
ELF/InputSection.cpp
ELF/Relocations.cpp
ELF/SymbolTable.h
ELF/SymbolTable.cpp
ELF/Writer.h
ELF/Writer.cpp
|
I think we usually write default at end of switch.