Keep the existing special cases based on combinations of section name, flags and sizes/offsets.
Some of those special cases have been added intentionally, with test cases, rather recently, so I don't want to try to generalize them at the moment.
Differential D70778
[LLDB] [PECOFF] Factorize mapping section names to types using StringSwitch. NFCI. mstorsjo on Nov 27 2019, 4:11 AM. Authored by
Details Keep the existing special cases based on combinations of section name, flags and sizes/offsets. Some of those special cases have been added intentionally, with test cases, rather recently, so I don't want to try to generalize them at the moment.
Diff Detail Event Timeline
Comment Actions Thanks for taking the time to do this. Just get rid of the elses and this is good to go.
|
Now that this is a return, you don't need the else as per http://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return.