Investigating a bot failure.
This reverts commit r193928.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193929
91177308-0d34-0410-b5e6-
96231b3b80d8
const coff_section *Section = NULL;
if (error_code ec = getSection(symb->SectionNumber, Section))
return ec;
-
- if (symb->SectionNumber == COFF::IMAGE_SYM_UNDEFINED && symb->Value != 0)
+ char Type;
+ if (error_code ec = getSymbolNMTypeChar(Symb, Type))
+ return ec;
+ if (Type == 'U' || Type == 'w')
Result = UnknownAddressOrSize;
else if (Section)
Result = Section->PointerToRawData + symb->Value;