It's good to reuse the DWARF parser in lib/DebugInfo so that we don't
need to maintain a separate parser in client side (obj2yaml). Besides,
A test case is added whose length field is a very huge value which makes
obj2yaml stuck when parsing the section.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/tools/obj2yaml/dwarf2yaml.cpp | ||
---|---|---|
10–19 | LLVM coding guidelines says not to include includes that aren't necessary (because they are transitively included, I believe). I suspect you don't need to add ArrayRef.h or Error.h, for example. You might need to change your IDE settings. | |
132 | Please add a comment here explaining why it's okay to consumeError and continue. | |
137 | Not sure a hyphen there is appropriate. |
LLVM coding guidelines says not to include includes that aren't necessary (because they are transitively included, I believe). I suspect you don't need to add ArrayRef.h or Error.h, for example. You might need to change your IDE settings.