~eda-qa/leaflang/cleanup_factorial

« back to all changes in this revision

Viewing changes to src/ir/type_manager.cpp

  • Committer: edA-qa mort-ora-y
  • Date: 2013-06-21 18:51:43 UTC
  • mfrom: (33.1.14 destructors)
  • Revision ID: eda-qa@disemia.com-20130621185143-imx3w970ach86dtv
merge destructors

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#include "ir/type.hpp"
3
3
#include "ir/value.hpp"
4
4
#include "ir/module.hpp"
 
5
#include "ir/compiler.hpp"
5
6
 
6
7
#include "lang/var_decl.hpp"
7
8
#include "lang/var_type.hpp"
15
16
namespace ir
16
17
{
17
18
 
18
 
type_manager::type_manager( )
 
19
type_manager::type_manager( compiler & comp )
 
20
        : comp( comp )
19
21
{
20
22
}
21
23
 
180
182
                                auto p = get( sref.decl->type, 0, sref.decl->symbol.c_str() );
181
183
                                out->sub.push_back( p );
182
184
                        }
 
185
                        
 
186
                        if( t.destroy ) {
 
187
                                out->destroy = comp.obtain_symbol_value_defn( *t.destroy );
 
188
                        }
183
189
                        break;
184
190
                }
185
191