Object/COFF: Change type from a struct to a uint16_t. The struct would be

incorrect for bigendian systems.

llvm-svn: 142403
This commit is contained in:
Michael J. Spencer
2011-10-18 19:31:59 +00:00
parent f5df537d26
commit 097be9f63c
2 changed files with 10 additions and 5 deletions

View File

@@ -147,7 +147,7 @@ error_code COFFObjectFile::getSymbolType(DataRefImpl Symb,
symb->SectionNumber == COFF::IMAGE_SYM_UNDEFINED) {
Result = SymbolRef::ST_External;
} else {
if (symb->Type.ComplexType == COFF::IMAGE_SYM_DTYPE_FUNCTION) {
if (symb->getComplexType() == COFF::IMAGE_SYM_DTYPE_FUNCTION) {
Result = SymbolRef::ST_Function;
} else {
char Type;