summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2017-01-24 14:50:05 +0900
committerJan Kotas <jkotas@microsoft.com>2017-01-23 21:50:05 -0800
commit0a0696ed88fe3b3240557bf9a432b723ccb1ff7e (patch)
treec5a6aa29bdd530feb1c57a6d598ba74bf06a6a65
parent9de7737437cd578b30c5332222a135db1f8d227c (diff)
downloadcoreclr-0a0696ed88fe3b3240557bf9a432b723ccb1ff7e.tar.gz
coreclr-0a0696ed88fe3b3240557bf9a432b723ccb1ff7e.tar.bz2
coreclr-0a0696ed88fe3b3240557bf9a432b723ccb1ff7e.zip
Clean up #else in EECodeManager::GetAmbientSP (#9049)
-rw-r--r--src/inc/eetwain.h4
-rw-r--r--src/vm/eetwain.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/inc/eetwain.h b/src/inc/eetwain.h
index 1d195d77d4..b04379b7d3 100644
--- a/src/inc/eetwain.h
+++ b/src/inc/eetwain.h
@@ -174,6 +174,7 @@ virtual void FixContext(ContextType ctxType,
#endif // #ifndef DACCESS_COMPILE
+#ifdef _TARGET_X86_
/*
Gets the ambient stack pointer value at the given nesting level within
the method.
@@ -183,6 +184,7 @@ virtual TADDR GetAmbientSP(PREGDISPLAY pContext,
DWORD dwRelOffset,
DWORD nestingLevel,
CodeManState *pState) = 0;
+#endif // _TARGET_X86_
/*
Get the number of bytes used for stack parameters.
@@ -386,6 +388,7 @@ void FixContext(ContextType ctxType,
#endif // #ifndef DACCESS_COMPILE
+#ifdef _TARGET_X86_
/*
Gets the ambient stack pointer value at the given nesting level within
the method.
@@ -396,6 +399,7 @@ TADDR GetAmbientSP(PREGDISPLAY pContext,
DWORD dwRelOffset,
DWORD nestingLevel,
CodeManState *pState);
+#endif // _TARGET_X86_
/*
Get the number of bytes used for stack parameters.
diff --git a/src/vm/eetwain.cpp b/src/vm/eetwain.cpp
index 538d6a22a5..414f8f3a73 100644
--- a/src/vm/eetwain.cpp
+++ b/src/vm/eetwain.cpp
@@ -5812,6 +5812,7 @@ void EECodeManager::EnumMemoryRegions(CLRDataEnumMemoryFlags flags)
#endif // #ifdef DACCESS_COMPILE
+#ifdef _TARGET_X86_
/*
* GetAmbientSP
*
@@ -5834,7 +5835,6 @@ TADDR EECodeManager::GetAmbientSP(PREGDISPLAY pContext,
SUPPORTS_DAC;
} CONTRACTL_END;
-#ifdef _TARGET_X86_
GCInfoToken gcInfoToken = pCodeInfo->GetGCInfoToken();
_ASSERTE(sizeof(CodeManStateBuf) <= sizeof(pState->stateBuf));
@@ -5907,12 +5907,8 @@ TADDR EECodeManager::GetAmbientSP(PREGDISPLAY pContext,
}
return baseSP;
-
-#else // !_TARGET_X86_
- PORTABILITY_ASSERT("EECodeManager::GetAmbientSP is not implemented on this platform.");
- return 0;
-#endif // _TARGET_X86_
}
+#endif // _TARGET_X86_
/*
Get the number of bytes used for stack parameters.