mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 14:17:59 +00:00
[llvm-objdump/MachODump] Shrink code a little bit. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255701 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1665eaa17d
commit
b1f9389d5b
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user