Changes in / [b826e6b:a57cb58]
- Location:
- src
- Files:
-
- 2 edited
-
Common/VectorMap.h (modified) (1 diff)
-
GenPoly/Box.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/VectorMap.h
rb826e6b ra57cb58 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // VectorMap.h --7 // ScopedMap.h -- 8 8 // 9 9 // Author : Aaron B. Moss -
src/GenPoly/Box.cc
rb826e6b ra57cb58 202 202 }; 203 203 204 /// Replaces initialization of polymorphic values with alloca, declaration of dtype/ftype with appropriate void expression, sizeof expressions of polymorphic types with the proper variable, and strips fields from generic struct declarations.204 /// Replaces initialization of polymorphic values with alloca, declaration of dtype/ftype with appropriate void expression, and sizeof expressions of polymorphic types with the proper variable 205 205 class Pass3 final : public PolyMutator { 206 206 public: … … 210 210 using PolyMutator::mutate; 211 211 virtual DeclarationWithType *mutate( FunctionDecl *functionDecl ) override; 212 virtual Declaration *mutate( StructDecl *structDecl ) override;213 virtual Declaration *mutate( UnionDecl *unionDecl ) override;214 212 virtual ObjectDecl *mutate( ObjectDecl *objectDecl ) override; 215 213 virtual TypedefDecl *mutate( TypedefDecl *objectDecl ) override; … … 1870 1868 } 1871 1869 1872 /// Strips the members from a generic aggregate1873 void stripGenericMembers(AggregateDecl* decl) {1874 if ( ! decl->get_parameters().empty() ) decl->get_members().clear();1875 }1876 1877 Declaration *Pass3::mutate( StructDecl *structDecl ) {1878 stripGenericMembers( structDecl );1879 return structDecl;1880 }1881 1882 Declaration *Pass3::mutate( UnionDecl *unionDecl ) {1883 stripGenericMembers( unionDecl );1884 return unionDecl;1885 }1886 1887 1870 TypeDecl * Pass3::mutate( TypeDecl *typeDecl ) { 1888 1871 // Initializer *init = 0;
Note:
See TracChangeset
for help on using the changeset viewer.