diff options
author | Jan Kotas <jkotas@microsoft.com> | 2015-12-22 10:25:53 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2015-12-22 10:25:53 +0300 |
commit | 119b9959ae527e708fdd39889125ba00797e3c12 (patch) | |
tree | 926c49f2a80baaa3f190d9ce9bf51280160c024d /src/ILCompiler.Compiler | |
parent | cca6b6046acad3d6a3c342231c5f64b197934a28 (diff) |
Do not emit literal fields in CppCodeGen
Diffstat (limited to 'src/ILCompiler.Compiler')
-rw-r--r-- | src/ILCompiler.Compiler/src/CppCodeGen/CppWriter.cs | 3 |
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) |