forked from OSchip/llvm-project
parent
8ff24d25de
commit
5efa665f7b
|
@ -145,8 +145,7 @@ error_code COFFObjectFile::getSymbolType(DataRefImpl Ref,
|
||||||
if (Symb->StorageClass == COFF::IMAGE_SYM_CLASS_EXTERNAL &&
|
if (Symb->StorageClass == COFF::IMAGE_SYM_CLASS_EXTERNAL &&
|
||||||
Symb->SectionNumber == COFF::IMAGE_SYM_UNDEFINED) {
|
Symb->SectionNumber == COFF::IMAGE_SYM_UNDEFINED) {
|
||||||
Result = SymbolRef::ST_Unknown;
|
Result = SymbolRef::ST_Unknown;
|
||||||
} else {
|
} else if (Symb->getComplexType() == COFF::IMAGE_SYM_DTYPE_FUNCTION) {
|
||||||
if (Symb->getComplexType() == COFF::IMAGE_SYM_DTYPE_FUNCTION) {
|
|
||||||
Result = SymbolRef::ST_Function;
|
Result = SymbolRef::ST_Function;
|
||||||
} else {
|
} else {
|
||||||
uint32_t Characteristics = 0;
|
uint32_t Characteristics = 0;
|
||||||
|
@ -160,7 +159,6 @@ error_code COFFObjectFile::getSymbolType(DataRefImpl Ref,
|
||||||
~Characteristics & COFF::IMAGE_SCN_MEM_WRITE) // Read only.
|
~Characteristics & COFF::IMAGE_SCN_MEM_WRITE) // Read only.
|
||||||
Result = SymbolRef::ST_Data;
|
Result = SymbolRef::ST_Data;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return object_error::success;
|
return object_error::success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue