forked from OSchip/llvm-project
parent
19d153261f
commit
745f8ffa3e
|
@ -29,7 +29,7 @@ static inline void encodeSLEB128(int64_t Value, raw_ostream &OS) {
|
|||
More = !((((Value == 0 ) && ((Byte & 0x40) == 0)) ||
|
||||
((Value == -1) && ((Byte & 0x40) != 0))));
|
||||
if (More)
|
||||
Byte |= 0x80; // Mark this byte that that more bytes will follow.
|
||||
Byte |= 0x80; // Mark this byte to show that more bytes will follow.
|
||||
OS << char(Byte);
|
||||
} while (More);
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ static inline void encodeULEB128(uint64_t Value, raw_ostream &OS,
|
|||
uint8_t Byte = Value & 0x7f;
|
||||
Value >>= 7;
|
||||
if (Value != 0 || Padding != 0)
|
||||
Byte |= 0x80; // Mark this byte that that more bytes will follow.
|
||||
Byte |= 0x80; // Mark this byte to show that more bytes will follow.
|
||||
OS << char(Byte);
|
||||
} while (Value != 0);
|
||||
|
||||
|
@ -62,7 +62,7 @@ static inline unsigned encodeULEB128(uint64_t Value, uint8_t *p,
|
|||
uint8_t Byte = Value & 0x7f;
|
||||
Value >>= 7;
|
||||
if (Value != 0 || Padding != 0)
|
||||
Byte |= 0x80; // Mark this byte that that more bytes will follow.
|
||||
Byte |= 0x80; // Mark this byte to show that more bytes will follow.
|
||||
*p++ = Byte;
|
||||
} while (Value != 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue