mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
DSPLLE: Remove dead DSPSymbolDB.
This commit is contained in:
parent
48c9c224cf
commit
dbb0cfbc09
@ -15,8 +15,6 @@
|
||||
|
||||
namespace DSP::Symbols
|
||||
{
|
||||
DSPSymbolDB g_dsp_symbol_db;
|
||||
|
||||
static std::map<u16, int> addr_to_line;
|
||||
static std::map<int, u16> line_to_addr;
|
||||
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)
|
||||
{
|
||||
AssemblerSettings settings;
|
||||
|
@ -15,16 +15,6 @@ struct SDSP;
|
||||
|
||||
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 Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user