SymbolDB: Use an enum class for representing symbol type

This commit is contained in:
Lioncash
2016-09-13 21:01:35 -04:00
parent d8d127df25
commit 0ac77b0288
8 changed files with 16 additions and 15 deletions

View File

@ -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;