| 249 | } |
| 250 | |
| 251 | string getAotHashComment ( const Function * fun ) { |
| 252 | DependencyCollector collector; |
| 253 | collector.collect(fun); |
| 254 | auto vec = collector.getStableDependencies(); |
| 255 | TextWriter tw; |
| 256 | tw << fun->getMangledName() << " hash=0x" << HEX << fun->hash; |
| 257 | for ( const auto & fn : vec ) { |
| 258 | if ( !fn.first->noAot && !fn.first->builtIn && fn.first != fun ) { |
| 259 | tw << ", " << fn.second << "=0x" << fn.first->hash; |
| 260 | } |
| 261 | } |
| 262 | tw << DEC; |
| 263 | return tw.str(); |
| 264 | } |
| 265 | |
| 266 | uint64_t getVariableListAotHash ( const vector<const Variable *> & globs, uint64_t initHash ) { |
| 267 | DependencyCollector collector; |
no test coverage detected