Skip to content

Commit

Permalink
[x86/Linux] Clean up ZapUnwindData (dotnet#10750)
Browse files Browse the repository at this point in the history
  • Loading branch information
parjong authored and janvorli committed Apr 6, 2017
1 parent f9d0333 commit 4abb8b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/vm/codeman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 2 additions & 4 deletions src/zap/zapcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand All @@ -1211,9 +1211,7 @@ UINT ZapUnwindData::GetAlignment()

DWORD ZapUnwindData::GetSize()
{
DWORD dwSize = ZapBlob::GetSize();

return dwSize;
return ZapBlob::GetSize();
}

void ZapUnwindData::Save(ZapWriter * pZapWriter)
Expand Down

0 comments on commit 4abb8b6

Please sign in to comment.