Don't use getSymbolNMTypeChar for implementing COFFObjectFile::getSymbolFileOffset.
llvm-svn: 193928
This commit is contained in:
@@ -112,10 +112,8 @@ error_code COFFObjectFile::getSymbolFileOffset(DataRefImpl Symb,
|
||||
const coff_section *Section = NULL;
|
||||
if (error_code ec = getSection(symb->SectionNumber, Section))
|
||||
return ec;
|
||||
char Type;
|
||||
if (error_code ec = getSymbolNMTypeChar(Symb, Type))
|
||||
return ec;
|
||||
if (Type == 'U' || Type == 'w')
|
||||
|
||||
if (symb->SectionNumber == COFF::IMAGE_SYM_UNDEFINED && symb->Value != 0)
|
||||
Result = UnknownAddressOrSize;
|
||||
else if (Section)
|
||||
Result = Section->PointerToRawData + symb->Value;
|
||||
|
||||
Reference in New Issue
Block a user