[svn r178] Fixed codegen values for function arguments, the old approach was completely broken, amazing it even worked...

This commit is contained in:
Tomas Lindquist Olsen
2008-05-05 00:56:53 +02:00
parent db2b3d1937
commit 06362014f4
8 changed files with 100 additions and 61 deletions

View File

@@ -787,8 +787,6 @@ void FuncDeclaration::semantic3(Scope *sc)
parameters->push(v);
localsymtab->insert(v);
v->parent = this;
// for llvm d
arg->vardecl = v;
}
}

View File

@@ -5057,7 +5057,6 @@ Argument::Argument(unsigned storageClass, Type *type, Identifier *ident, Express
this->ident = ident;
this->storageClass = storageClass;
this->defaultArg = defaultArg;
this->vardecl = 0;
}
Argument *Argument::syntaxCopy()

View File

@@ -674,9 +674,6 @@ struct Argument : Object
static void argsToDecoBuffer(OutBuffer *buf, Arguments *arguments);
static size_t dim(Arguments *arguments);
static Argument *getNth(Arguments *arguments, size_t nth, size_t *pn = NULL);
// backend
VarDeclaration* vardecl;
};
extern int PTRSIZE;