Changes in src/SymTab/Mangler.cpp [c92bdcc:119889f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Mangler.cpp
rc92bdcc r119889f 58 58 void postvisit( const ast::OneType * oneType ); 59 59 void postvisit( const ast::QualifiedType * qualType ); 60 void postvisit( const ast::EnumAttrType * posType );61 60 62 61 /// The result is the current constructed mangled name. … … 280 279 } 281 280 282 void Mangler::postvisit( const ast::EnumAttrType * enumAttr ) {283 postvisit( enumAttr->instance );284 // mangleName += "_pos";285 switch ( enumAttr->attr )286 {287 case ast::EnumAttribute::Label:288 mangleName += "_label_";289 break;290 case ast::EnumAttribute::Posn:291 mangleName += "_posn_";292 break;293 case ast::EnumAttribute::Value:294 mangleName += "_value_";295 break;296 }297 298 }299 300 281 // For debugging: 301 282 __attribute__((unused)) void printVarMap( const std::map< std::string, std::pair< int, int > > &varMap, std::ostream &os ) { … … 309 290 if ( typeMode ) return; 310 291 auto funcType = dynamic_cast<const ast::FunctionType *>( type ); 311 if ( funcType && !funcType->forall.empty() ) {292 if ( funcType && (!funcType->forall.empty() || !funcType->assertions.empty()) ) { 312 293 std::list< std::string > assertionNames; 313 294 int dcount = 0, fcount = 0, vcount = 0, acount = 0;
Note:
See TracChangeset
for help on using the changeset viewer.