mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Adding multiple object support to MCJIT EH frame handling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192504 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -54,10 +54,15 @@ static const char *processFDE(const char *Entry) {
|
||||
}
|
||||
#endif
|
||||
|
||||
void RTDyldMemoryManager::registerEHFrames(StringRef SectionData) {
|
||||
// This implementation handles frame registration for local targets.
|
||||
// Memory managers for remote targets should re-implement this function
|
||||
// and use the LoadAddr parameter.
|
||||
void RTDyldMemoryManager::registerEHFrames(uint8_t *Addr,
|
||||
uint64_t LoadAddr,
|
||||
size_t Size) {
|
||||
#if HAVE_EHTABLE_SUPPORT
|
||||
const char *P = SectionData.data();
|
||||
const char *End = SectionData.data() + SectionData.size();
|
||||
const char *P = (const char *)Addr;
|
||||
const char *End = P + Size;
|
||||
do {
|
||||
P = processFDE(P);
|
||||
} while(P != End);
|
||||
|
Reference in New Issue
Block a user