Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixGlobalInit.cc

    r293dc1c r490fb92e  
    109109        }
    110110
    111         void fixGlobalInit(ast::TranslationUnit & translationUnit, bool inLibrary) {
     111        void fixGlobalInit(std::list<ast::ptr<ast::Decl>> & translationUnit, bool inLibrary) {
    112112                ast::Pass<GlobalFixer_new> fixer;
    113113                accept_all(translationUnit, fixer);
     
    119119                                ast::Storage::Static, ast::Linkage::C, {new ast::Attribute("constructor", std::move(ctorParams))});
    120120
    121                         translationUnit.decls.emplace_back( initFunction );
     121                        translationUnit.emplace_back( initFunction );
    122122                } // if
    123123
     
    128128                                ast::Storage::Static, ast::Linkage::C, {new ast::Attribute("destructor", std::move(dtorParams))});
    129129
    130                         translationUnit.decls.emplace_back(destroyFunction);
     130                        translationUnit.emplace_back(destroyFunction);
    131131                } // if
    132132        }
     
    153153                        } // if
    154154                        if ( Statement * ctor = ctorInit->ctor ) {
    155                                 addDataSectonAttribute( objDecl );
    156155                                initStatements.push_back( ctor );
    157156                                objDecl->init = nullptr;
Note: See TracChangeset for help on using the changeset viewer.