diff options
author | John Hodge <tpg@mutabah.net> | 2016-12-18 11:30:08 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-12-18 11:31:04 +0800 |
commit | f06d01f899a58e2f5c4207d8def237872f40a47e (patch) | |
tree | 7cd6c07e940cfac3afd769eeae44e135f062bc65 /src/hir_expand/vtable.cpp | |
parent | 048e53fa011bc09ae24bbb0ee3fcb4f8105959f1 (diff) | |
download | mrust-f06d01f899a58e2f5c4207d8def237872f40a47e.tar.gz |
HIR - Move VTable construction to codegen
Diffstat (limited to 'src/hir_expand/vtable.cpp')
-rw-r--r-- | src/hir_expand/vtable.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hir_expand/vtable.cpp b/src/hir_expand/vtable.cpp index c36704ed..f12f8de5 100644 --- a/src/hir_expand/vtable.cpp +++ b/src/hir_expand/vtable.cpp @@ -232,6 +232,7 @@ namespace { ::HIR::Visitor::visit_trait_impl(trait_path, impl); + #if 0 // Check if the trait has a vtable, and if it does emit an associated static for it. const auto& tr = m_crate.get_trait_by_path(sp, trait_path); if(tr.m_value_indexes.size() > 0) @@ -266,6 +267,7 @@ namespace { ::HIR::Literal::make_List( mv$(vals) ) } } )); } + #endif } }; } |