[x86/Linux] Fix compile error in zapcode (dotnet/coreclr#8294)
authorSaeHie Park <saehie.park@gmail.com>
Mon, 28 Nov 2016 14:03:29 +0000 (23:03 +0900)
committerJan Kotas <jkotas@microsoft.com>
Mon, 28 Nov 2016 14:03:29 +0000 (06:03 -0800)
Fix compile error for x86/Linux
- Remove ZapUnwindInfo WIN64EXCEPTIONS codes for x86/Linux
- fix "use of undeclared identifier 'NEED_TO_PORT_THIS_ONE'"
- fix "unknown type name 'UNWIND_INFO'"
- fix "use of undeclared identifier 'READYTORUN_HELPER_PersonalityRoutineFilterFunclet'"

Commit migrated from https://github.com/dotnet/coreclr/commit/2acb29c3e9aeeab5292d6481e8d3bf583ae110ab

src/coreclr/src/zap/zapcode.cpp

index adad361..167c0ed 100644 (file)
@@ -1130,7 +1130,7 @@ void ZapUnwindInfo::Save(ZapWriter * pZapWriter)
     pZapWriter->Write(&runtimeFunction, sizeof(runtimeFunction));
 }
 
-#ifdef WIN64EXCEPTIONS
+#if defined(WIN64EXCEPTIONS) && !defined(_TARGET_X86_)
 // Compare the unwind infos by their offset
 int __cdecl ZapUnwindInfo::CompareUnwindInfo(const void* a_, const void* b_)
 {