From b1af572476b452c35bb6dbe9ea0fccd526156f0a Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 29 Jan 2017 17:48:32 +1100 Subject: Trans - Only emit typeid if needed --- src/trans/codegen.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/trans/codegen.cpp') diff --git a/src/trans/codegen.cpp b/src/trans/codegen.cpp index 29b42325..0141497f 100644 --- a/src/trans/codegen.cpp +++ b/src/trans/codegen.cpp @@ -47,6 +47,10 @@ void Trans_Codegen(const ::std::string& outfile, const ::HIR::Crate& crate, cons codegen->emit_type(ty.first); } } + for(const auto& ty : list.m_typeids) + { + codegen->emit_type_id(ty); + } // 2. Emit function prototypes for(const auto& ent : list.m_functions) -- cgit v1.2.3