summaryrefslogtreecommitdiff
path: root/src/vm/comdelegate.cpp
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2016-12-06 05:20:53 +0900
committerJan Vorlicek <janvorli@microsoft.com>2016-12-05 21:20:53 +0100
commit14bcf6ddf93ae4f7e897e219aaa8c0e43bb99415 (patch)
tree1850080822661b00a61f74aa47f6280d7af89055 /src/vm/comdelegate.cpp
parent0c952dcef303e2ee80e892bca7bf5d0950e225cd (diff)
downloadcoreclr-14bcf6ddf93ae4f7e897e219aaa8c0e43bb99415.tar.gz
coreclr-14bcf6ddf93ae4f7e897e219aaa8c0e43bb99415.tar.bz2
coreclr-14bcf6ddf93ae4f7e897e219aaa8c0e43bb99415.zip
Fix dangling StubLinkerCPU::EmitDelegateInvoke in x86/Linux (#8444)
Several methods in StublicLinkerCPU (including EmitDelegateInvoke) are available only when FEATURE_STUBS_AS_IL is defined. This commit encloses their declaration with appropriate macro (FEATURE_STUBS_AS_IL), and fix related build erros.
Diffstat (limited to 'src/vm/comdelegate.cpp')
-rw-r--r--src/vm/comdelegate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/comdelegate.cpp b/src/vm/comdelegate.cpp
index 9ba1bdb328..4e3523ee60 100644
--- a/src/vm/comdelegate.cpp
+++ b/src/vm/comdelegate.cpp
@@ -2395,7 +2395,7 @@ PCODE COMDelegate::TheDelegateInvokeStub()
}
CONTRACT_END;
-#ifdef _TARGET_X86_
+#if defined(_TARGET_X86_) && !defined(FEATURE_STUBS_AS_IL)
static PCODE s_pInvokeStub;
if (s_pInvokeStub == NULL)
@@ -2415,7 +2415,7 @@ PCODE COMDelegate::TheDelegateInvokeStub()
RETURN s_pInvokeStub;
#else
RETURN GetEEFuncEntryPoint(SinglecastDelegateInvokeStub);
-#endif // _TARGET_X86_
+#endif // _TARGET_X86_ && !FEATURE_STUBS_AS_IL
}
// Get the cpu stub for a delegate invoke.