Mercurial > projects > ldc
diff gen/tocall.cpp @ 1463:a5526b7a5ae6
D2:
Applied function type from D1 frontend that got removed in D2, it's critical for member function type to be correct.
Fixed a bunch of type discrepancies in druntime object.di vs. genobj.d .
Disabled (#if 0) some potentally very large type dumps for -vv .
Updated classinfo and typeinfo generation for D2, almost complete now.
Added finer grained checks for vtbl type mismatching, aids debugging.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Wed, 03 Jun 2009 02:28:48 +0200 |
parents | fe151804995a |
children | ad7f2f1862d6 |
line wrap: on
line diff
--- a/gen/tocall.cpp Tue Jun 02 20:28:53 2009 +0200 +++ b/gen/tocall.cpp Wed Jun 03 02:28:48 2009 +0200 @@ -432,18 +432,22 @@ assert(fnarg); DValue* argval = DtoArgument(fnarg, (Expression*)arguments->data[i]); +#if 0 if (Logger::enabled()) { Logger::cout() << "Argument before ABI: " << *argval->getRVal() << '\n'; Logger::cout() << "Argument type before ABI: " << *DtoType(argval->getType()) << '\n'; } +#endif // give the ABI a say LLValue* arg = tf->fty.putParam(argval->getType(), i, argval); +#if 0 if (Logger::enabled()) { Logger::cout() << "Argument after ABI: " << *arg << '\n'; Logger::cout() << "Argument type after ABI: " << *arg->getType() << '\n'; } +#endif int j = tf->fty.reverseParams ? beg + n - i - 1 : beg + i;