mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Portably cast a pointer to an integer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25594 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -79,7 +79,7 @@ inline void BytecodeReader::checkPastBlockEnd(const char * block_name) {
|
|||||||
inline void BytecodeReader::align32() {
|
inline void BytecodeReader::align32() {
|
||||||
if (hasAlignment) {
|
if (hasAlignment) {
|
||||||
BufPtr Save = At;
|
BufPtr Save = At;
|
||||||
At = (const unsigned char *)((unsigned long)(At+3) & (~3UL));
|
At = (const unsigned char *)((size_t)(At+3) & (~3UL));
|
||||||
if (At > Save)
|
if (At > Save)
|
||||||
if (Handler) Handler->handleAlignment(At - Save);
|
if (Handler) Handler->handleAlignment(At - Save);
|
||||||
if (At > BlockEnd)
|
if (At > BlockEnd)
|
||||||
|
@ -645,7 +645,7 @@ void DIEAbbrev::Emit(const DwarfWriter &DW) const {
|
|||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
void DIEAbbrev::print(std::ostream &O) {
|
void DIEAbbrev::print(std::ostream &O) {
|
||||||
O << "Abbreviation @"
|
O << "Abbreviation @"
|
||||||
<< std::hex << (unsigned long)this << std::dec
|
<< std::hex << (size_t)this << std::dec
|
||||||
<< " "
|
<< " "
|
||||||
<< TagString(Tag)
|
<< TagString(Tag)
|
||||||
<< " "
|
<< " "
|
||||||
|
Reference in New Issue
Block a user