Update codeobj disassembly to use comgr va2fo API (#250)

* Update codeobj disassembly to use comgr va2fo API

* Format

* Tidy fix

* Tidy fix

* Review comments

---------

Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
Αυτή η υποβολή περιλαμβάνεται σε:
Baraldi, Giovanni
2025-03-13 20:35:25 +01:00
υποβλήθηκε από GitHub
γονέας 346c7149dd
υποβολή 970bebafeb
3 αρχεία άλλαξαν με 23 προσθήκες και 55 διαγραφές
@@ -22,6 +22,9 @@
#pragma once
#include "disassembly.hpp"
#include "segment.hpp"
#include <elfutils/libdw.h>
#include <hsa/amd_hsa_elf.h>
@@ -35,9 +38,6 @@
#include <unordered_map>
#include <vector>
#include "disassembly.hpp"
#include "segment.hpp"
namespace rocprofiler
{
namespace sdk
@@ -169,7 +169,7 @@ public:
std::optional<uint64_t> va2fo(uint64_t vaddr) const
{
if(disassembly) return disassembly->va2fo(vaddr);
return {};
return std::nullopt;
};
std::unique_ptr<Instruction> disassemble_instruction(uint64_t faddr, uint64_t vaddr)