Changes in src/SymTab/FixFunction.cc [1931bb01:7ff3e522]
- File:
-
- 1 edited
-
src/SymTab/FixFunction.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/FixFunction.cc
r1931bb01 r7ff3e522 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 16:19:49 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Tue Jul 12 14:28:00 202213 // Update Count : 711 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Mar 6 23:36:59 2017 13 // Update Count : 6 14 14 // 15 15 … … 122 122 } 123 123 124 void previsit( const ast::FunctionType * ) { visit_children = false; }125 126 const ast::Type * postvisit( const ast::FunctionType * type ) {127 return new ast::PointerType( type );128 }129 130 124 void previsit( const ast::VoidType * ) { isVoid = true; } 131 125 … … 151 145 } 152 146 153 const ast::Type * fixFunction( const ast::Type * type, bool & isVoid ) {154 ast::Pass< FixFunction_new > fixer;155 type = type->accept( fixer );156 isVoid |= fixer.core.isVoid;157 return type;158 }159 160 147 } // namespace SymTab 161 148
Note:
See TracChangeset
for help on using the changeset viewer.