mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153208 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -41,6 +41,11 @@ public:
|
|||||||
return JMM->allocateCodeSection(Size, Alignment, SectionID);
|
return JMM->allocateCodeSection(Size, Alignment, SectionID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void *getPointerToNamedFunction(const std::string &Name,
|
||||||
|
bool AbortOnFailure = true) {
|
||||||
|
return JMM->getPointerToNamedFunction(Name, AbortOnFailure);
|
||||||
|
}
|
||||||
|
|
||||||
// Allocate ActualSize bytes, or more, for the named function. Return
|
// Allocate ActualSize bytes, or more, for the named function. Return
|
||||||
// a pointer to the allocated memory and update Size to reflect how much
|
// a pointer to the allocated memory and update Size to reflect how much
|
||||||
// memory was acutally allocated.
|
// memory was acutally allocated.
|
||||||
|
@@ -61,6 +61,12 @@ public:
|
|||||||
uint8_t *startFunctionBody(const char *Name, uintptr_t &Size);
|
uint8_t *startFunctionBody(const char *Name, uintptr_t &Size);
|
||||||
void endFunctionBody(const char *Name, uint8_t *FunctionStart,
|
void endFunctionBody(const char *Name, uint8_t *FunctionStart,
|
||||||
uint8_t *FunctionEnd);
|
uint8_t *FunctionEnd);
|
||||||
|
|
||||||
|
virtual void *getPointerToNamedFunction(const std::string &Name,
|
||||||
|
bool AbortOnFailure = true) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
uint8_t *TrivialMemoryManager::allocateCodeSection(uintptr_t Size,
|
uint8_t *TrivialMemoryManager::allocateCodeSection(uintptr_t Size,
|
||||||
|
Reference in New Issue
Block a user