Changeset 31f4837 for src/InitTweak/GenInit.cpp
- Timestamp:
- May 13, 2024, 10:26:59 AM (17 months ago)
- Branches:
- master
- Children:
- e6f1a4b
- Parents:
- acb33f15 (diff), ca4f2b2 (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 moved
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/GenInit.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // GenInit.c c-- Generate initializers, and other stuff.7 // GenInit.cpp -- Generate initializers, and other stuff. 8 8 // 9 9 // Author : Rob Schluntz … … 13 13 // Update Count : 186 14 14 // 15 #include "GenInit.h "15 #include "GenInit.hpp" 16 16 17 17 #include <stddef.h> // for NULL … … 28 28 #include "AST/Stmt.hpp" 29 29 #include "CompilationState.hpp" 30 #include "CodeGen/OperatorTable.h "31 #include "Common/SemanticError.h "// for SemanticError30 #include "CodeGen/OperatorTable.hpp" 31 #include "Common/SemanticError.hpp" // for SemanticError 32 32 #include "Common/ToString.hpp" // for toCString 33 #include "Common/UniqueName.h "// for UniqueName34 #include "Common/ utility.h"// for ValueGuard, maybeClone35 #include "GenPoly/GenPoly.h "// for getFunctionType, isPolyType36 #include "GenPoly/ScopedSet.h "// for ScopedSet, ScopedSet<>::const_iter...37 #include "InitTweak.h "// for isConstExpr, InitExpander, checkIn...38 #include "ResolvExpr/Resolver.h "33 #include "Common/UniqueName.hpp" // for UniqueName 34 #include "Common/Utility.hpp" // for ValueGuard, maybeClone 35 #include "GenPoly/GenPoly.hpp" // for getFunctionType, isPolyType 36 #include "GenPoly/ScopedSet.hpp" // for ScopedSet, ScopedSet<>::const_iter... 37 #include "InitTweak.hpp" // for isConstExpr, InitExpander, checkIn... 38 #include "ResolvExpr/Resolver.hpp" 39 39 #include "SymTab/GenImplicitCall.hpp" // for genImplicitCall 40 #include "SymTab/Mangler.h" // for Mangler 41 #include "Tuples/Tuples.h" // for maybeImpure 42 #include "Validate/FindSpecialDecls.h" // for SizeType 40 #include "SymTab/Mangler.hpp" // for Mangler 41 #include "Tuples/Tuples.hpp" // for maybeImpure 43 42 44 43 namespace InitTweak { … … 334 333 335 334 ast::ConstructorInit * genCtorInit( const CodeLocation & loc, const ast::ObjectDecl * objDecl ) { 336 // call into genImplicitCall from Autogen.h to generate calls to ctor/dtor for each 337 // constructable object 335 // Call genImplicitCall to generate calls to ctor/dtor for each constructable object. 338 336 InitExpander srcParam{ objDecl->init }, nullParam{ (const ast::Init *)nullptr }; 339 337 ast::ptr< ast::Expr > dstParam = new ast::VariableExpr(loc, objDecl);
Note:
See TracChangeset
for help on using the changeset viewer.