The original implementation assumed dynamic libraries and so looked
only at the dynamic symbol table. Use the regular symbol table for
ET_REL files.
Details
- Reviewers
rengolin - Commits
- rGf92c1726deb7: Make llvm-tli-checker support static libraries
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
A few nits, but looks good to me, thanks!
llvm/tools/llvm-tli-checker/llvm-tli-checker.cpp | ||
---|---|---|
167 | Nit: // Insert defined global function symbols into the map if valid. | |
168 | Feels weird to pass the end() iterator here, because in theory you could pass any valid iterator and it wouldn't be the same logic. I think passing a reference to the object and then using Section != o.section_end() would be more clear as well as avoiding improper use by accident. | |
176 | Nit: I'd wrap this in curly brackets because of the two-line if statement. |
Nit: