Mercurial > projects > ldc
comparison gen/tocall.cpp @ 1423:42bd767ec5a4
* Add -functionattrs to default pass list so -dgc2stack is more effective
when callees aren't inlined. This should also improve various standard LLVM
optimizations.
* Comment out some verbose logging.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Thu, 28 May 2009 00:07:21 +0200 |
parents | 46f6365a50d7 |
children | fe151804995a |
comparison
equal
deleted
inserted
replaced
1422:91ddebba88e9 | 1423:42bd767ec5a4 |
---|---|
414 for (size_t i = 0; i < args.size(); i++) { | 414 for (size_t i = 0; i < args.size(); i++) { |
415 Logger::cout() << *args[i] << '\n'; | 415 Logger::cout() << *args[i] << '\n'; |
416 } | 416 } |
417 Logger::undent(); | 417 Logger::undent(); |
418 Logger::cout() << "Function type: " << tf->toChars() << '\n'; | 418 Logger::cout() << "Function type: " << tf->toChars() << '\n'; |
419 Logger::cout() << "LLVM functype: " << *callable->getType() << '\n'; | 419 //Logger::cout() << "LLVM functype: " << *callable->getType() << '\n'; |
420 } | 420 } |
421 | 421 |
422 size_t n = Argument::dim(tf->parameters); | 422 size_t n = Argument::dim(tf->parameters); |
423 | 423 |
424 LLSmallVector<unsigned, 10> attrptr(n, 0); | 424 LLSmallVector<unsigned, 10> attrptr(n, 0); |