mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 09:31:03 +03:00
Cleanup: Remove unused code in backend, silence some warnings.
This removed quite some clutter that has presumably piled up because LDC is seldom built with a lot of warnings enabled due to DMDFE.
This commit is contained in:
parent
009ce6e161
commit
7a24e12736
15 changed files with 25 additions and 69 deletions
|
@ -279,8 +279,7 @@ const llvm::FunctionType* DtoFunctionType(FuncDeclaration* fdecl)
|
|||
|
||||
static llvm::Function* DtoDeclareVaFunction(FuncDeclaration* fdecl)
|
||||
{
|
||||
TypeFunction* f = (TypeFunction*)fdecl->type->toBasetype();
|
||||
const llvm::FunctionType* fty = DtoVaFunctionType(fdecl);
|
||||
DtoVaFunctionType(fdecl);
|
||||
llvm::Function* func = 0;
|
||||
|
||||
if (fdecl->llvmInternal == LLVMva_start)
|
||||
|
@ -370,8 +369,6 @@ void DtoResolveFunction(FuncDeclaration* fdecl)
|
|||
|
||||
static void set_param_attrs(TypeFunction* f, llvm::Function* func, FuncDeclaration* fdecl)
|
||||
{
|
||||
int funcNumArgs = func->getArgumentList().size();
|
||||
|
||||
LLSmallVector<llvm::AttributeWithIndex, 9> attrs;
|
||||
llvm::AttributeWithIndex PAWI;
|
||||
|
||||
|
@ -648,7 +645,6 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
|||
// assert(f->irtype);
|
||||
|
||||
llvm::Function* func = fd->ir.irFunc->func;
|
||||
const llvm::FunctionType* functype = func->getFunctionType();
|
||||
|
||||
// sanity check
|
||||
assert(mustDefineSymbol(fd));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue