Skip to content

Commit ff1333f

Browse files
committed
[gen/arrays.cpp] Remove unused DtoArrayEqCmp_impl
1 parent b1ea62b commit ff1333f

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

gen/arrays.cpp

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -683,35 +683,6 @@ DSliceValue *DtoAppendDCharToUnicodeString(Loc loc, DValue *arr,
683683

684684
////////////////////////////////////////////////////////////////////////////////
685685
namespace {
686-
// helper for eq and cmp
687-
LLValue *DtoArrayEqCmp_impl(Loc loc, const char *func, DValue *l, DValue *r,
688-
bool useti) {
689-
IF_LOG Logger::println("comparing arrays");
690-
LLFunction *fn = getRuntimeFunction(loc, gIR->module, func);
691-
assert(fn);
692-
693-
// find common dynamic array type
694-
Type *commonType = arrayOf(l->type->toBasetype()->nextOf());
695-
696-
// cast static arrays to dynamic ones, this turns them into DSliceValues
697-
Logger::println("casting to dynamic arrays");
698-
l = DtoCastArray(loc, l, commonType);
699-
r = DtoCastArray(loc, r, commonType);
700-
701-
LLSmallVector<LLValue *, 3> args;
702-
703-
args.push_back(DtoRVal(l));
704-
args.push_back(DtoRVal(r));
705-
706-
// pass array typeinfo ?
707-
if (useti) {
708-
LLValue *tival = DtoTypeInfoOf(loc, l->type);
709-
args.push_back(tival);
710-
}
711-
712-
return gIR->CreateCallOrInvoke(fn, args);
713-
}
714-
715686
// Create a call instruction to memcmp.
716687
llvm::CallInst *callMemcmp(Loc loc, IRState &irs, LLValue *l_ptr,
717688
LLValue *r_ptr, LLValue *numElements, LLType *elemty) {

0 commit comments

Comments
 (0)