Changeset ffec1bf for src/SymTab/FixFunction.cc
- Timestamp:
- Jul 25, 2022, 2:23:28 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 4c48be0, 5cf1228, def751f
- Parents:
- 9e23b446 (diff), 1f950c3b (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/SymTab/FixFunction.cc
r9e23b446 rffec1bf 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 16:19:49 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon Mar 6 23:36:59 201713 // Update Count : 611 // Last Modified By : Andrew Beach 12 // Last Modified On : Tue Jul 12 14:28:00 2022 13 // Update Count : 7 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 124 130 void previsit( const ast::VoidType * ) { isVoid = true; } 125 131 … … 145 151 } 146 152 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 147 160 } // namespace SymTab 148 161
Note:
See TracChangeset
for help on using the changeset viewer.