mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Unbreak llvm-rtdyld build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187699 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
782fdcefa5
commit
bd194ced30
@ -204,7 +204,7 @@ static int executeInput() {
|
|||||||
// Resolve all the relocations we can.
|
// Resolve all the relocations we can.
|
||||||
Dyld.resolveRelocations();
|
Dyld.resolveRelocations();
|
||||||
// Clear instruction cache before code will be executed.
|
// Clear instruction cache before code will be executed.
|
||||||
MemMgr->invalidateInstructionCache();
|
MemMgr.invalidateInstructionCache();
|
||||||
|
|
||||||
// FIXME: Error out if there are unresolved relocations.
|
// FIXME: Error out if there are unresolved relocations.
|
||||||
|
|
||||||
@ -214,8 +214,8 @@ static int executeInput() {
|
|||||||
return Error("no definition for '" + EntryPoint + "'");
|
return Error("no definition for '" + EntryPoint + "'");
|
||||||
|
|
||||||
// Invalidate the instruction cache for each loaded function.
|
// Invalidate the instruction cache for each loaded function.
|
||||||
for (unsigned i = 0, e = MemMgr->FunctionMemory.size(); i != e; ++i) {
|
for (unsigned i = 0, e = MemMgr.FunctionMemory.size(); i != e; ++i) {
|
||||||
sys::MemoryBlock &Data = MemMgr->FunctionMemory[i];
|
sys::MemoryBlock &Data = MemMgr.FunctionMemory[i];
|
||||||
// Make sure the memory is executable.
|
// Make sure the memory is executable.
|
||||||
std::string ErrorStr;
|
std::string ErrorStr;
|
||||||
sys::Memory::InvalidateInstructionCache(Data.base(), Data.size());
|
sys::Memory::InvalidateInstructionCache(Data.base(), Data.size());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user