Changeset 139775e for src/InitTweak/FixGlobalInit.cc
- Timestamp:
- Nov 6, 2020, 4:48:52 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 75baaa3
- Parents:
- 55acc3a (diff), 836c9925 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixGlobalInit.cc
r55acc3a r139775e 109 109 } 110 110 111 void fixGlobalInit( std::list<ast::ptr<ast::Decl>>& translationUnit, bool inLibrary) {111 void fixGlobalInit(ast::TranslationUnit & translationUnit, bool inLibrary) { 112 112 ast::Pass<GlobalFixer_new> fixer; 113 113 accept_all(translationUnit, fixer); … … 119 119 ast::Storage::Static, ast::Linkage::C, {new ast::Attribute("constructor", std::move(ctorParams))}); 120 120 121 translationUnit. emplace_back( initFunction );121 translationUnit.decls.emplace_back( initFunction ); 122 122 } // if 123 123 … … 128 128 ast::Storage::Static, ast::Linkage::C, {new ast::Attribute("destructor", std::move(dtorParams))}); 129 129 130 translationUnit. emplace_back(destroyFunction);130 translationUnit.decls.emplace_back(destroyFunction); 131 131 } // if 132 132 } … … 183 183 } // if 184 184 if ( const ast::Stmt * ctor = ctorInit->ctor ) { 185 addDataSectionAttribute(mutDecl); 185 186 initStmts.push_back( ctor ); 186 187 mutDecl->init = nullptr;
Note: See TracChangeset
for help on using the changeset viewer.