mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
SymbolDB: Use an enum class for representing symbol type
This commit is contained in:
@ -182,14 +182,14 @@ bool ElfReader::LoadSymbols()
|
||||
if (bRelocate)
|
||||
value += sectionAddrs[sectionIndex];
|
||||
|
||||
int symtype = Symbol::SYMBOL_DATA;
|
||||
auto symtype = Symbol::Type::Data;
|
||||
switch (type)
|
||||
{
|
||||
case STT_OBJECT:
|
||||
symtype = Symbol::SYMBOL_DATA;
|
||||
symtype = Symbol::Type::Data;
|
||||
break;
|
||||
case STT_FUNC:
|
||||
symtype = Symbol::SYMBOL_FUNCTION;
|
||||
symtype = Symbol::Type::Function;
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user