[x86/Linux] Clean up ZapUnwindData (dotnet/coreclr#10750)
authorJonghyun Park <parjong@gmail.com>
Thu, 6 Apr 2017 09:51:19 +0000 (18:51 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Thu, 6 Apr 2017 09:51:19 +0000 (11:51 +0200)
Commit migrated from https://github.com/dotnet/coreclr/commit/4abb8b63b2e51550ae3e0a8b04129deaf99bdf7e

src/coreclr/src/vm/codeman.cpp
src/coreclr/src/zap/zapcode.cpp

index c2632f7..73b4c06 100644 (file)
@@ -985,10 +985,10 @@ PTR_VOID GetUnwindDataBlob(TADDR moduleBase, PTR_RUNTIME_FUNCTION pRuntimeFuncti
 
     return pUnwindInfo;
 
-#elif defined(_TARGET_X86_) && defined(FEATURE_PAL)
+#elif defined(_TARGET_X86_)
     PTR_UNWIND_INFO pUnwindInfo(dac_cast<PTR_UNWIND_INFO>(moduleBase + RUNTIME_FUNCTION__GetUnwindInfoAddress(pRuntimeFunction)));
 
-    *pSize = ALIGN_UP(sizeof(UNWIND_INFO), sizeof(DWORD));
+    *pSize = sizeof(UNWIND_INFO);
 
     return pUnwindInfo;
 
index ead385d..7384283 100644 (file)
@@ -1202,7 +1202,7 @@ void ZapUnwindData::Save(ZapWriter * pZapWriter)
 #endif //REDHAWK
 }
 
-#elif defined(_TARGET_X86_) && defined(FEATURE_PAL)
+#elif defined(_TARGET_X86_)
 
 UINT ZapUnwindData::GetAlignment()
 {
@@ -1211,9 +1211,7 @@ UINT ZapUnwindData::GetAlignment()
 
 DWORD ZapUnwindData::GetSize()
 {
-    DWORD dwSize = ZapBlob::GetSize();
-
-    return dwSize;
+    return ZapBlob::GetSize();
 }
 
 void ZapUnwindData::Save(ZapWriter * pZapWriter)