This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo][ExecutionEngine] follow up for "add SectionedAddress to DebugInfo interfaces"
AbandonedPublic

Authored by avl on Mar 5 2019, 4:17 AM.

Details

Reviewers
dblaikie
Summary

[ExecutionEngine] The https://reviews.llvm.org/D58194 patch changed symbolizer interface.
Particularily it requires not only Address but SectionIndex also. This patch set proper SectionIndex
instead of Undefined value. That cures several lit tests for ExecutionEngine.

Diff Detail

Event Timeline

avl created this revision.Mar 5 2019, 4:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2019, 4:17 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Hahnfeld added inline comments.
llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
153

According to the documentation, SymbolRef::getSection returns a section_iterator. Do we need to check against section_end()? (end_sections in the documentation is wrong!)

avl marked an inline comment as done.Mar 5 2019, 9:27 PM
avl added inline comments.
llvm/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
153

Good catch! thanks. though there are many usages of this without checking for section_end().

avl updated this revision to Diff 189445.Mar 5 2019, 9:28 PM

added check for section_end()

I think the change is correct, but I don't know enough of the code to feel confident.

avl abandoned this revision.Mar 25 2019, 11:32 AM

abandon revision because of already integrated duplicated revision https://reviews.llvm.org/D59490