- RUNTIME_FUNCTION only exists in 64-bit Windows

This commit is contained in:
Magnus Norddahl 2018-10-14 22:54:30 +02:00
parent cd211da2d8
commit 1a2e5b12d0

View file

@ -241,7 +241,7 @@ static void *AddJitFunction(asmjit::CodeHolder* code, asmjit::CCFunc *func)
if (codeSize == 0) if (codeSize == 0)
return nullptr; return nullptr;
#ifdef WIN32 #ifdef _WIN64
TArray<uint16_t> unwindInfo = CreateUnwindInfo(func); TArray<uint16_t> unwindInfo = CreateUnwindInfo(func);
size_t unwindInfoSize = unwindInfo.Size() * sizeof(uint16_t); size_t unwindInfoSize = unwindInfo.Size() * sizeof(uint16_t);
size_t functionTableSize = sizeof(RUNTIME_FUNCTION); size_t functionTableSize = sizeof(RUNTIME_FUNCTION);
@ -264,7 +264,7 @@ static void *AddJitFunction(asmjit::CodeHolder* code, asmjit::CCFunc *func)
unwindStart = (unwindStart + 15) / 16 * 16; unwindStart = (unwindStart + 15) / 16 * 16;
JitBlockPos -= codeSize - unwindStart; JitBlockPos -= codeSize - unwindStart;
#ifdef WIN32 #ifdef _WIN64
uint8_t *baseaddr = JitBlocks.Last(); uint8_t *baseaddr = JitBlocks.Last();
uint8_t *startaddr = p; uint8_t *startaddr = p;
uint8_t *endaddr = p + relocSize; uint8_t *endaddr = p + relocSize;