mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Formatting changes. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101685 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
21739c1c72
commit
69c128f19d
@ -1229,35 +1229,35 @@ bool JITEmitter::finishFunction(MachineFunction &F) {
|
|||||||
// Mark code region readable and executable if it's not so already.
|
// Mark code region readable and executable if it's not so already.
|
||||||
MemMgr->setMemoryExecutable();
|
MemMgr->setMemoryExecutable();
|
||||||
|
|
||||||
DEBUG(
|
DEBUG({
|
||||||
if (sys::hasDisassembler()) {
|
if (sys::hasDisassembler()) {
|
||||||
dbgs() << "JIT: Disassembled code:\n";
|
dbgs() << "JIT: Disassembled code:\n";
|
||||||
dbgs() << sys::disassembleBuffer(FnStart, FnEnd-FnStart,
|
dbgs() << sys::disassembleBuffer(FnStart, FnEnd-FnStart,
|
||||||
(uintptr_t)FnStart);
|
(uintptr_t)FnStart);
|
||||||
} else {
|
} else {
|
||||||
dbgs() << "JIT: Binary code:\n";
|
dbgs() << "JIT: Binary code:\n";
|
||||||
uint8_t* q = FnStart;
|
uint8_t* q = FnStart;
|
||||||
for (int i = 0; q < FnEnd; q += 4, ++i) {
|
for (int i = 0; q < FnEnd; q += 4, ++i) {
|
||||||
if (i == 4)
|
if (i == 4)
|
||||||
i = 0;
|
i = 0;
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
dbgs() << "JIT: " << (long)(q - FnStart) << ": ";
|
dbgs() << "JIT: " << (long)(q - FnStart) << ": ";
|
||||||
bool Done = false;
|
bool Done = false;
|
||||||
for (int j = 3; j >= 0; --j) {
|
for (int j = 3; j >= 0; --j) {
|
||||||
if (q + j >= FnEnd)
|
if (q + j >= FnEnd)
|
||||||
Done = true;
|
Done = true;
|
||||||
else
|
else
|
||||||
dbgs() << (unsigned short)q[j];
|
dbgs() << (unsigned short)q[j];
|
||||||
|
}
|
||||||
|
if (Done)
|
||||||
|
break;
|
||||||
|
dbgs() << ' ';
|
||||||
|
if (i == 3)
|
||||||
|
dbgs() << '\n';
|
||||||
}
|
}
|
||||||
if (Done)
|
dbgs()<< '\n';
|
||||||
break;
|
|
||||||
dbgs() << ' ';
|
|
||||||
if (i == 3)
|
|
||||||
dbgs() << '\n';
|
|
||||||
}
|
}
|
||||||
dbgs()<< '\n';
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
if (DwarfExceptionHandling || JITEmitDebugInfo) {
|
if (DwarfExceptionHandling || JITEmitDebugInfo) {
|
||||||
uintptr_t ActualSize = 0;
|
uintptr_t ActualSize = 0;
|
||||||
@ -1265,9 +1265,8 @@ bool JITEmitter::finishFunction(MachineFunction &F) {
|
|||||||
SavedBufferEnd = BufferEnd;
|
SavedBufferEnd = BufferEnd;
|
||||||
SavedCurBufferPtr = CurBufferPtr;
|
SavedCurBufferPtr = CurBufferPtr;
|
||||||
|
|
||||||
if (MemMgr->NeedsExactSize()) {
|
if (MemMgr->NeedsExactSize())
|
||||||
ActualSize = DE->GetDwarfTableSizeInBytes(F, *this, FnStart, FnEnd);
|
ActualSize = DE->GetDwarfTableSizeInBytes(F, *this, FnStart, FnEnd);
|
||||||
}
|
|
||||||
|
|
||||||
BufferBegin = CurBufferPtr = MemMgr->startExceptionTable(F.getFunction(),
|
BufferBegin = CurBufferPtr = MemMgr->startExceptionTable(F.getFunction(),
|
||||||
ActualSize);
|
ActualSize);
|
||||||
|
Loading…
Reference in New Issue
Block a user