@@ -1399,46 +1399,6 @@ void irgen::emitBuiltinCall(IRGenFunction &IGF, const BuiltinInfo &Builtin,
1399
1399
out.add (result);
1400
1400
return ;
1401
1401
}
1402
-
1403
- if (Builtin.ID == BuiltinValueKind::Swift3ImplicitObjCEntrypoint) {
1404
- llvm::Value *entrypointArgs[7 ];
1405
- auto argIter = IGF.CurFn ->arg_begin ();
1406
-
1407
- // self
1408
- entrypointArgs[0 ] = &*argIter++;
1409
- if (entrypointArgs[0 ]->getType () != IGF.IGM .ObjCPtrTy )
1410
- entrypointArgs[0 ] = IGF.Builder .CreateBitCast (entrypointArgs[0 ], IGF.IGM .ObjCPtrTy );
1411
-
1412
- // _cmd
1413
- entrypointArgs[1 ] = &*argIter;
1414
- if (entrypointArgs[1 ]->getType () != IGF.IGM .ObjCSELTy )
1415
- entrypointArgs[1 ] = IGF.Builder .CreateBitCast (entrypointArgs[1 ], IGF.IGM .ObjCSELTy );
1416
-
1417
- // Filename pointer
1418
- entrypointArgs[2 ] = args.claimNext ();
1419
- // Filename length
1420
- entrypointArgs[3 ] = args.claimNext ();
1421
- // Line
1422
- entrypointArgs[4 ] = args.claimNext ();
1423
- // Column
1424
- entrypointArgs[5 ] = args.claimNext ();
1425
-
1426
- // Create a flag variable so that this invocation logs only once.
1427
- auto flagStorageTy = llvm::ArrayType::get (IGF.IGM .Int8Ty ,
1428
- IGF.IGM .getAtomicBoolSize ().getValue ());
1429
- auto flag = new llvm::GlobalVariable (IGF.IGM .Module , flagStorageTy,
1430
- /* constant*/ false ,
1431
- llvm::GlobalValue::PrivateLinkage,
1432
- llvm::ConstantAggregateZero::get (flagStorageTy));
1433
- flag->setAlignment (
1434
- llvm::MaybeAlign (IGF.IGM .getAtomicBoolAlignment ().getValue ()));
1435
- entrypointArgs[6 ] = llvm::ConstantExpr::getBitCast (flag, IGF.IGM .Int8PtrTy );
1436
-
1437
- IGF.Builder .CreateCall (
1438
- IGF.IGM .getSwift3ImplicitObjCEntrypointFunctionPointer (),
1439
- entrypointArgs);
1440
- return ;
1441
- }
1442
1402
1443
1403
if (Builtin.ID == BuiltinValueKind::TypePtrAuthDiscriminator) {
1444
1404
(void )args.claimAll ();
0 commit comments