Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorgan Brown <morganbr@users.noreply.github.com>2018-04-07 05:35:17 +0300
committerGitHub <noreply@github.com>2018-04-07 05:35:17 +0300
commita1d1dc873fb52db2cff913572f714fa6524cc5a9 (patch)
tree2ba8de97eca332c75e909ac9d2a43dbd6895d653 /src/ILCompiler.CppCodeGen
parentc4d4dd827f788e134a6f9f1a4443b8f467759266 (diff)
Initialize modules and run StartupCodeMain in wasm (#5621)
Code to call InitializeModules on startup and associated bug fixes and workarounds. Handles mismatched struct calling conventions between LLVM and Clang and works around the dup opcode incorrectly reloading values. Enables StartupCodeMain and fix associated bugs in pinvokes. Implements main return codes
Diffstat (limited to 'src/ILCompiler.CppCodeGen')
-rw-r--r--src/ILCompiler.CppCodeGen/src/CppCodeGen/CppWriter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ILCompiler.CppCodeGen/src/CppCodeGen/CppWriter.cs b/src/ILCompiler.CppCodeGen/src/CppCodeGen/CppWriter.cs
index bf2938b34..94c79dbe8 100644
--- a/src/ILCompiler.CppCodeGen/src/CppCodeGen/CppWriter.cs
+++ b/src/ILCompiler.CppCodeGen/src/CppCodeGen/CppWriter.cs
@@ -1268,7 +1268,7 @@ namespace ILCompiler.CppCodeGen
rtrHeader.Append(GetCodeForObjectNode(headerNode, factory));
rtrHeader.AppendLine();
- rtrHeader.Append("void* RtRHeaderWrapper() {");
+ rtrHeader.Append("extern \"C\" void* RtRHeaderWrapper() {");
rtrHeader.Indent();
rtrHeader.AppendLine();
rtrHeader.Append("static struct {");