diff options
author | Michal Strehovský <MichalStrehovsky@users.noreply.github.com> | 2017-06-07 21:06:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-07 21:06:55 +0300 |
commit | 8d5e8450259d34ac414e327d1de7d8f870a66634 (patch) | |
tree | b288c377bbb63fee56445f3b1b41b9aebf5e1e0b /src/ILCompiler.CppCodeGen | |
parent | e72517342f5d6661ad49348fe9808bc33a5dde32 (diff) |
Add HasFixedSlots API to VTableSlice (#3812)
This is in preparation for hooking up the ILScanner. The result of IL
scanning will be a precise set of VTable slots to generate that we'll
use to allocate a new descendant of `VTableSliceNode` that reports
`HasFixedSlots` as true, even though `ShouldProduceFullVTable` might
still be false.
Diffstat (limited to 'src/ILCompiler.CppCodeGen')
-rw-r--r-- | src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs b/src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs index ac3016c38..cac63cb1e 100644 --- a/src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs +++ b/src/ILCompiler.CppCodeGen/src/CppCodeGen/ILToCppImporter.cs @@ -968,7 +968,7 @@ namespace Internal.IL else callViaSlot = true; - if (!_nodeFactory.CompilationModuleGroup.ShouldProduceFullVTable(method.OwningType)) + if (!_nodeFactory.VTable(method.OwningType).HasFixedSlots) _dependencies.Add(_nodeFactory.VirtualMethodUse(method)); } } |