diff options
author | Morgan Brown <morganbr@users.noreply.github.com> | 2018-04-07 05:35:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-07 05:35:17 +0300 |
commit | a1d1dc873fb52db2cff913572f714fa6524cc5a9 (patch) | |
tree | 2ba8de97eca332c75e909ac9d2a43dbd6895d653 /src/ILCompiler.CppCodeGen | |
parent | c4d4dd827f788e134a6f9f1a4443b8f467759266 (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.cs | 2 |
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 {"); |