1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

[llvm-objdump/MachODump] Shrink code a little bit. NFC.

llvm-svn: 255701
This commit is contained in:
Davide Italiano 2015-12-15 23:14:21 +00:00
parent 37e0cc52ee
commit 8485ad1cb8

View File

@ -914,10 +914,7 @@ static void DumpInitTermPointerSection(MachOObjectFile *O, const char *sect,
SymbolAddressMap *AddrMap,
bool verbose) {
uint32_t stride;
if (O->is64Bit())
stride = sizeof(uint64_t);
else
stride = sizeof(uint32_t);
stride = (O->is64Bit()) ? sizeof(uint64_t) : sizeof(uint32_t);
for (uint32_t i = 0; i < sect_size; i += stride) {
const char *SymbolName = nullptr;
if (O->is64Bit()) {