memcpy(pZapGCInfo->GetGCInfo(), pGCInfo, cbGCInfo);
memcpy(pZapGCInfo->GetUnwindInfo(), pUnwindInfo, cbUnwindInfo);
-#if defined(_TARGET_AMD64_) || defined(_TARGET_ARM_)
+#if !defined(_TARGET_X86_)
// Make sure the personality routine thunk is created
pZapGCInfo->GetPersonalityRoutine(ZapImage::GetImage(pWriter));
-#endif // defined(_TARGET_AMD64_) || defined(_TARGET_ARM_)
+#endif // !defined(_TARGET_X86_)
return pZapGCInfo;
}
#else
{
T_RUNTIME_FUNCTION runtimeFunction;
-#if defined(_TARGET_ARM_)
+#if defined(_TARGET_ARM_) || defined(_TARGET_ARM64_)
RUNTIME_FUNCTION__SetBeginAddress(&runtimeFunction, GetStartAddress());
runtimeFunction.UnwindData = m_pUnwindData->GetRVA();
#elif defined(_TARGET_AMD64_)
#endif //REDHAWK
}
-#elif defined(_TARGET_ARM_)
+#elif defined(_TARGET_ARM_) || defined(_TARGET_ARM64_)
UINT ZapUnwindData::GetAlignment()
{
}
#else
-
UINT ZapUnwindData::GetAlignment()
{
PORTABILITY_ASSERT("ZapUnwindData::GetAlignment");
return sizeof(ULONG);
}
-
DWORD ZapUnwindData::GetSize()
{
PORTABILITY_ASSERT("ZapUnwindData::GetSize");
return -1;
}
-
void ZapUnwindData::Save(ZapWriter * pZapWriter)
{
PORTABILITY_ASSERT("ZapUnwindData::Save");
memcpy((void*)(pZapUnwindData + 1), pData, cbSize);
-#if defined(_TARGET_AMD64_) || defined(_TARGET_ARM_)
+#if !defined(_TARGET_X86_)
// Make sure the personality routine thunk is created
pZapUnwindData->GetPersonalityRoutine(ZapImage::GetImage(pWriter));
-#endif // defined(_TARGET_AMD64_) || defined(_TARGET_ARM_)
+#endif // !defined(_TARGET_X86_)
return pZapUnwindData;
}