Returning code object id information in code_printing.cpp:Instruction (#965)

* Returning code object id information in code_printing.cpp:Instruction

* Adding assertions

* Simplifying decoder library
Αυτή η υποβολή περιλαμβάνεται σε:
Giovanni Lenzi Baraldi
2024-07-08 16:59:40 -03:00
υποβλήθηκε από GitHub
γονέας 4e2144dbfa
υποβολή 78fd8cb379
4 αρχεία άλλαξαν με 185 προσθήκες και 255 διαγραφές
@@ -162,6 +162,7 @@ tool_codeobj_tracing_callback(rocprofiler_callback_tracing_record_t record,
while(vaddr < begin_end.second)
{
auto inst = codeobjTranslate.get(vaddr);
assert(inst != nullptr);
if(inst->comment.size())
{
std::string_view source = inst->comment;