Changeset fc638d2 for src/ResolvExpr
- Timestamp:
- Dec 13, 2016, 4:13:08 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 7933351
- Parents:
- f7e749f
- Location:
- src/ResolvExpr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/ResolvExpr/TypeEnvironment.cc ¶
rf7e749f rfc638d2 32 32 // 33 33 // I've seen a TU go from 54 minutes to 1 minute 34 seconds with the addition of this comparator. 34 bool AssertCompare::operator()( DeclarationWithType * d1, DeclarationWithType * d2 ) {34 bool AssertCompare::operator()( DeclarationWithType * d1, DeclarationWithType * d2 ) const { 35 35 // Objects are always less than functions 36 36 if ( ObjectDecl * objectDecl1 = dynamic_cast< ObjectDecl * >( d1 ) ) { -
TabularUnified src/ResolvExpr/TypeEnvironment.h ¶
rf7e749f rfc638d2 29 29 namespace ResolvExpr { 30 30 struct AssertCompare { 31 bool operator()( DeclarationWithType * d1, DeclarationWithType * d2 ) ;31 bool operator()( DeclarationWithType * d1, DeclarationWithType * d2 ) const; 32 32 }; 33 33 typedef std::map< DeclarationWithType*, bool, AssertCompare > AssertionSet;
Note: See TracChangeset
for help on using the changeset viewer.