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:
authorJan Kotas <jkotas@microsoft.com>2015-12-22 10:25:53 +0300
committerJan Kotas <jkotas@microsoft.com>2015-12-22 10:25:53 +0300
commit119b9959ae527e708fdd39889125ba00797e3c12 (patch)
tree926c49f2a80baaa3f190d9ce9bf51280160c024d /src/ILCompiler.Compiler
parentcca6b6046acad3d6a3c342231c5f64b197934a28 (diff)
Do not emit literal fields in CppCodeGen
Diffstat (limited to 'src/ILCompiler.Compiler')
-rw-r--r--src/ILCompiler.Compiler/src/CppCodeGen/CppWriter.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ILCompiler.Compiler/src/CppCodeGen/CppWriter.cs b/src/ILCompiler.Compiler/src/CppCodeGen/CppWriter.cs
index 2808f29c9..e53db6cdd 100644
--- a/src/ILCompiler.Compiler/src/CppCodeGen/CppWriter.cs
+++ b/src/ILCompiler.Compiler/src/CppCodeGen/CppWriter.cs
@@ -670,6 +670,9 @@ namespace ILCompiler.CppCodeGen
{
if (field.IsStatic)
{
+ if (field.IsLiteral)
+ continue;
+
TypeDesc fieldType = GetFieldTypeOrPlaceholder(field);
StringBuilder builder;
if (!fieldType.IsValueType)