Mercurial > projects > ldc
comparison dmd/func.c @ 245:d61ce72c39ab trunk
[svn r262] Fixed debug info for normal function parameters.
Fixed debug info for pointers to basic types.
author | lindquist |
---|---|
date | Mon, 09 Jun 2008 12:43:16 +0200 |
parents | a58d8f4b84df |
children | 2b72433d5c8c |
comparison
equal
deleted
inserted
replaced
244:a95056b3c996 | 245:d61ce72c39ab |
---|---|
779 v->storage_class |= STCvariadic; | 779 v->storage_class |= STCvariadic; |
780 v->storage_class |= arg->storageClass & (STCin | STCout | STCref | STClazy); | 780 v->storage_class |= arg->storageClass & (STCin | STCout | STCref | STClazy); |
781 if (v->storage_class & STClazy) | 781 if (v->storage_class & STClazy) |
782 v->storage_class |= STCin; | 782 v->storage_class |= STCin; |
783 v->semantic(sc2); | 783 v->semantic(sc2); |
784 #if IN_LLVM | |
785 // LLVMDC: the argument needs an addres if we want to attach debug info to it. | |
786 if (global.params.symdebug) | |
787 v->needsStorage = true; | |
788 #endif | |
784 if (!sc2->insert(v)) | 789 if (!sc2->insert(v)) |
785 error("parameter %s.%s is already defined", toChars(), v->toChars()); | 790 error("parameter %s.%s is already defined", toChars(), v->toChars()); |
786 else | 791 else |
787 parameters->push(v); | 792 parameters->push(v); |
788 localsymtab->insert(v); | 793 localsymtab->insert(v); |