#if defined(_TARGET_X86_)
-#ifdef PROFILING_SUPPORTED
+#if defined(PROFILING_SUPPORTED) && !defined(FEATURE_STUBS_AS_IL)
VOID StubLinkerCPU::EmitProfilerComCallProlog(TADDR pFrameVptr, X86Reg regFrame)
{
STANDARD_VM_CONTRACT;
_ASSERTE(!"Unrecognized vtble passed to EmitComMethodStubEpilog with profiling turned on.");
}
}
-#endif // PROFILING_SUPPORTED
+#endif // PROFILING_SUPPORTED && !FEATURE_STUBS_AS_IL
#ifndef FEATURE_STUBS_AS_IL
);
VOID X86EmitPushEBPframe();
+#if defined(_TARGET_X86_)
+#if defined(PROFILING_SUPPORTED) && !defined(FEATURE_STUBS_AS_IL)
// These are used to emit calls to notify the profiler of transitions in and out of
// managed code through COM->COM+ interop or N/Direct
VOID EmitProfilerComCallProlog(TADDR pFrameVptr, X86Reg regFrame);
VOID EmitProfilerComCallEpilog(TADDR pFrameVptr, X86Reg regFrame);
+#endif // PROFILING_SUPPORTED && !FEATURE_STUBS_AS_IL
+#endif // _TARGET_X86_