lld/MachO/SyntheticSections.cpp
static void encodeDoRebase(Rebase &rebase, raw_svector_ostream &os) {
  assert(rebase.consecutiveCount != 0);
  if (rebase.consecutiveCount <= REBASE_IMMEDIATE_MASK) {
    os << static_cast<uint8_t>(REBASE_OPCODE_DO_REBASE_IMM_TIMES |
                               rebase.consecutiveCount);
  } else {
    os << static_cast<uint8_t>(REBASE_OPCODE_DO_REBASE_ULEB_TIMES);
    encodeULEB128(rebase.consecutiveCount, os);
  }
  rebase.consecutiveCount = 0;
}
// Rebase opcodes allow us to describe a contiguous sequence of rebase location
// using a single DO_REBASE opcode. To take advantage of it, we delay emitting
// `DO_REBASE` until we have reached the end of a contiguous sequence.
Rebase opcodes allow us to describe a contiguous sequence of rebase location
using a single DO_REBASE opcode. To take advantage of it, we delay emitting
`DO_REBASE` until we have reached the end of a contiguous sequence.
Rebase opcodes allow us to describe a contiguous sequence of rebase location using a single DO_REBASE opcode . To take advantage of it we delay emitting ` DO_REBASE ` until we have reached the end of a contiguous sequence .
static void encodeDoRebase(Rebase &rebase, raw_svector_ostream &os) {
  assert(rebase.consecutiveCount != 0);
  if (rebase.consecutiveCount <= REBASE_IMMEDIATE_MASK) {
    os << static_cast<uint8_t>(REBASE_OPCODE_DO_REBASE_IMM_TIMES |
                               rebase.consecutiveCount);
  } else {
    os << static_cast<uint8_t>(REBASE_OPCODE_DO_REBASE_ULEB_TIMES);
    encodeULEB128(rebase.consecutiveCount, os);
  }
  rebase.consecutiveCount = 0;
}
static void encodeDoRebase ( Rebase & rebase , raw_svector_ostream & os ) { assert ( rebase . consecutiveCount != 0 ) ; if ( rebase . consecutiveCount <= REBASE_IMMEDIATE_MASK ) { os << static_cast < uint8_t > ( REBASE_OPCODE_DO_REBASE_IMM_TIMES | rebase . consecutiveCount ) ; } else { os << static_cast < uint8_t > ( REBASE_OPCODE_DO_REBASE_ULEB_TIMES ) ; encodeULEB128 ( rebase . consecutiveCount , os ) ; } rebase . consecutiveCount = 0 ; }
Rebase opcodes allow us to describe a contiguous sequence of rebase location
using a single DO_REBASE opcode.
Rebase opcodes allow us to describe a contiguous sequence of rebase location using a single DO_REBASE opcode .