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.
Paths
| Differential D70778
[LLDB] [PECOFF] Factorize mapping section names to types using StringSwitch. NFCI. ClosedPublic Authored by mstorsjo on Nov 27 2019, 4:11 AM.
Details Summary 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.
This revision is now accepted and ready to land.Nov 27 2019, 11:14 PM mstorsjo added inline comments.
Closed by commit rG2e5bb6d8d944: [LLDB] [PECOFF] Factorize mapping section names to types using StringSwitch. (authored by mstorsjo). · Explain WhyNov 28 2019, 1:31 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 231368 lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h
lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
|
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.