diff gen/functions.cpp @ 258:8dbddae09152 trunk

[svn r276] Fixed debug info for 'this' arg seemed to be broken.
author lindquist
date Thu, 12 Jun 2008 19:59:19 +0200
parents 8187884566fa
children 88252a1af660
line wrap: on
line diff
--- a/gen/functions.cpp	Thu Jun 12 18:40:47 2008 +0200
+++ b/gen/functions.cpp	Thu Jun 12 19:59:19 2008 +0200
@@ -588,7 +588,7 @@
     }
 
     // give 'this' argument debug info (and storage)
-    if (f->llvmUsesThis && global.params.symdebug)
+    if (fd->needThis() && global.params.symdebug)
     {
         LLValue** thisvar = &fd->ir.irFunc->thisVar;
         assert(*thisvar);
@@ -608,7 +608,7 @@
             VarDeclaration* vd = argsym->isVarDeclaration();
             assert(vd);
 
-            // FIXME: llvm seems to want an alloca for debug info
+            // FIXME: llvm seems to want an alloca/byval for debug info
             if (!vd->needsStorage || vd->nestedref || vd->isRef() || vd->isOut())
                 continue;
             // debug info for normal aggr params seem to work fine