mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-08 03:46:02 +03:00
[svn r384] Some minor code cleanups.
This commit is contained in:
parent
4bcbe1cf68
commit
27674069e7
5 changed files with 5 additions and 48 deletions
|
@ -212,12 +212,6 @@ const llvm::FunctionType* DtoFunctionType(FuncDeclaration* fdecl)
|
|||
return DtoVaFunctionType(fdecl);
|
||||
}
|
||||
|
||||
// unittest has null type, just build it manually
|
||||
/*if (fdecl->isUnitTestDeclaration()) {
|
||||
std::vector<const LLType*> args;
|
||||
return llvm::FunctionType::get(LLType::VoidTy, args, false);
|
||||
}*/
|
||||
|
||||
// type has already been resolved
|
||||
if (fdecl->type->ir.type != 0) {
|
||||
return llvm::cast<llvm::FunctionType>(fdecl->type->ir.type->get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue