@@ -683,35 +683,6 @@ DSliceValue *DtoAppendDCharToUnicodeString(Loc loc, DValue *arr,
683683
684684// //////////////////////////////////////////////////////////////////////////////
685685namespace {
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.
716687llvm::CallInst *callMemcmp (Loc loc, IRState &irs, LLValue *l_ptr,
717688 LLValue *r_ptr, LLValue *numElements, LLType *elemty) {
0 commit comments