Changeset 974906e2 for src/MakeLibCfa.cc
- Timestamp:
- Jan 11, 2016, 2:48:05 PM (7 years ago)
- Branches:
- aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- a56767c
- Parents:
- 1e9d87b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/MakeLibCfa.cc
r1e9d87b r974906e2 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // MakeLibCfa.cc -- 7 // MakeLibCfa.cc -- 8 8 // 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sat May 16 10:33:33 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Fri Jul 03 18:11:37 201513 // Update Count : 1814 // 12 // Last Modified On : Thu Jan 07 13:34:39 2016 13 // Update Count : 20 14 // 15 15 16 16 #include "MakeLibCfa.h" … … 29 29 void visit( FunctionDecl* funcDecl ); 30 30 void visit( ObjectDecl* objDecl ); 31 31 32 32 std::list< Declaration* > &get_newDecls() { return newDecls; } 33 33 private: … … 43 43 void MakeLibCfa::visit( FunctionDecl* origFuncDecl ) { 44 44 if ( origFuncDecl->get_linkage() != LinkageSpec::Intrinsic ) return; 45 45 46 46 FunctionDecl *funcDecl = origFuncDecl->clone(); 47 47 CodeGen::OperatorInfo opInfo; … … 99 99 void MakeLibCfa::visit( ObjectDecl* origObjDecl ) { 100 100 if ( origObjDecl->get_linkage() != LinkageSpec::Intrinsic ) return; 101 101 102 102 ObjectDecl *objDecl = origObjDecl->clone(); 103 103 assert( ! objDecl->get_init() ); 104 104 std::list< Expression* > noDesignators; 105 objDecl->set_init( new SingleInit( new NameExpr( objDecl->get_name() ), noDesignators ) );105 objDecl->set_init( new SingleInit( new NameExpr( objDecl->get_name() ), noDesignators, false ) ); // cannot be constructed 106 106 newDecls.push_back( objDecl ); 107 107 }
Note: See TracChangeset
for help on using the changeset viewer.