DSPLLE: Remove dead DSPSymbolDB.

This commit is contained in:
Admiral H. Curtiss 2022-09-03 22:20:24 +02:00
parent 48c9c224cf
commit dbb0cfbc09
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
2 changed files with 0 additions and 28 deletions

View File

@ -15,8 +15,6 @@
namespace DSP::Symbols namespace DSP::Symbols
{ {
DSPSymbolDB g_dsp_symbol_db;
static std::map<u16, int> addr_to_line; static std::map<u16, int> addr_to_line;
static std::map<int, u16> line_to_addr; static std::map<int, u16> line_to_addr;
static std::vector<std::string> lines; static std::vector<std::string> lines;
@ -52,22 +50,6 @@ const char* GetLineText(int line)
} }
} }
Common::Symbol* DSPSymbolDB::GetSymbolFromAddr(u32 addr)
{
auto it = m_functions.find(addr);
if (it != m_functions.end())
return &it->second;
for (auto& func : m_functions)
{
if (addr >= func.second.address && addr < func.second.address + func.second.size)
return &func.second;
}
return nullptr;
}
void AutoDisassembly(const SDSP& dsp, u16 start_addr, u16 end_addr) void AutoDisassembly(const SDSP& dsp, u16 start_addr, u16 end_addr)
{ {
AssemblerSettings settings; AssemblerSettings settings;

View File

@ -15,16 +15,6 @@ struct SDSP;
namespace DSP::Symbols namespace DSP::Symbols
{ {
class DSPSymbolDB : public Common::SymbolDB
{
public:
DSPSymbolDB() {}
~DSPSymbolDB() {}
Common::Symbol* GetSymbolFromAddr(u32 addr) override;
};
extern DSPSymbolDB g_dsp_symbol_db;
void AutoDisassembly(const SDSP& dsp, u16 start_addr, u16 end_addr); void AutoDisassembly(const SDSP& dsp, u16 start_addr, u16 end_addr);
void Clear(); void Clear();