Unbreak llvm-rtdyld build.

llvm-svn: 187699
This commit is contained in:
Benjamin Kramer 2013-08-03 22:18:45 +00:00
parent 097e09abba
commit 5d62ad2aff
1 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ static int executeInput() {
// Resolve all the relocations we can.
Dyld.resolveRelocations();
// Clear instruction cache before code will be executed.
MemMgr->invalidateInstructionCache();
MemMgr.invalidateInstructionCache();
// FIXME: Error out if there are unresolved relocations.
@ -214,8 +214,8 @@ static int executeInput() {
return Error("no definition for '" + EntryPoint + "'");
// Invalidate the instruction cache for each loaded function.
for (unsigned i = 0, e = MemMgr->FunctionMemory.size(); i != e; ++i) {
sys::MemoryBlock &Data = MemMgr->FunctionMemory[i];
for (unsigned i = 0, e = MemMgr.FunctionMemory.size(); i != e; ++i) {
sys::MemoryBlock &Data = MemMgr.FunctionMemory[i];
// Make sure the memory is executable.
std::string ErrorStr;
sys::Memory::InvalidateInstructionCache(Data.base(), Data.size());