[svn r14] Forgot something stupid...y

This commit is contained in:
Tomas Lindquist Olsen
2007-10-01 23:32:29 +02:00
parent e95466cb64
commit e1a8afb028

View File

@@ -619,12 +619,9 @@ void FuncDeclaration::toObjFile()
Logger::println("queueing %s", toChars());
assert(!gIR->classmethods.empty());
gIR->classmethods.back().push_back(this);
return; // will be generated later when the this parameter has a type
return; // we wait with the definition as they might invoke a virtual method and the vtable is not yet complete
}
if (llvmNeedsDefinition)
{
TypeFunction* f = (TypeFunction*)type;
llvm::FunctionType* functype = llvm::cast<llvm::FunctionType>(f->llvmType);
@@ -714,8 +711,6 @@ void FuncDeclaration::toObjFile()
}
}
}
llvmDModule = gIR->dmodule;
Logger::println("FuncDeclaration done\n");