Reduce nesting.

llvm-svn: 199418
This commit is contained in:
Rui Ueyama 2014-01-16 20:22:55 +00:00
parent 8ff24d25de
commit 5efa665f7b
1 changed files with 11 additions and 13 deletions

View File

@ -145,8 +145,7 @@ error_code COFFObjectFile::getSymbolType(DataRefImpl Ref,
if (Symb->StorageClass == COFF::IMAGE_SYM_CLASS_EXTERNAL &&
Symb->SectionNumber == COFF::IMAGE_SYM_UNDEFINED) {
Result = SymbolRef::ST_Unknown;
} else {
if (Symb->getComplexType() == COFF::IMAGE_SYM_DTYPE_FUNCTION) {
} else if (Symb->getComplexType() == COFF::IMAGE_SYM_DTYPE_FUNCTION) {
Result = SymbolRef::ST_Function;
} else {
uint32_t Characteristics = 0;
@ -160,7 +159,6 @@ error_code COFFObjectFile::getSymbolType(DataRefImpl Ref,
~Characteristics & COFF::IMAGE_SCN_MEM_WRITE) // Read only.
Result = SymbolRef::ST_Data;
}
}
return object_error::success;
}