Fix for x86 checked build error.
authorEugene Rozenfeld <erozen@microsoft.com>
Fri, 29 Jan 2016 19:56:25 +0000 (11:56 -0800)
committerEugene Rozenfeld <erozen@microsoft.com>
Fri, 29 Jan 2016 19:56:25 +0000 (11:56 -0800)
Remove FORCEINLINE from GetUnwindDataBlob so that the compiler
always emits it in codeman.obj. The code in nidump.cpp
(NativeImageDumper::DumpReadyToRunMethod) calls this method so
we were getting link errors if GetUnwindDataBlob wasn't emitted in codeman.obj.
GetUnwindDataBlob is small enough for a compiler to inline it even without FORCEINLINE.

src/vm/codeman.cpp

index 1cac3f4..9374a2c 100644 (file)
@@ -1126,7 +1126,7 @@ BOOL IJitManager::IsFilterFunclet(EECodeInfo * pCodeInfo)
 
 #else // WIN64EXCEPTIONS
 
-FORCEINLINE PTR_VOID GetUnwindDataBlob(TADDR moduleBase, PTR_RUNTIME_FUNCTION pRuntimeFunction, /* out */ SIZE_T * pSize)
+PTR_VOID GetUnwindDataBlob(TADDR moduleBase, PTR_RUNTIME_FUNCTION pRuntimeFunction, /* out */ SIZE_T * pSize)
 {
     *pSize = 0;
     return dac_cast<PTR_VOID>(pRuntimeFunction->UnwindData + moduleBase);