@@ -575,8 +575,6 @@ class IRGenSILFunction :
575
575
// ===--------------------------------------------------------------------===//
576
576
577
577
void visitSILBasicBlock (SILBasicBlock *BB);
578
- IndirectionKind getLoweredArgValue (llvm::SmallVectorImpl<llvm::Value *> &Vals,
579
- SILArgument *Arg, StringRef Name);
580
578
581
579
void emitFunctionArgDebugInfo (SILBasicBlock *BB);
582
580
@@ -1390,24 +1388,6 @@ static unsigned countArgs(DeclContext *DC) {
1390
1388
return N;
1391
1389
}
1392
1390
1393
- // / Store the lowered IR representation of Arg in the array
1394
- // / Vals. Returns true if Arg is a byref argument.
1395
- IndirectionKind IRGenSILFunction::
1396
- getLoweredArgValue (llvm::SmallVectorImpl<llvm::Value *> &Vals,
1397
- SILArgument *Arg, StringRef Name) {
1398
- const LoweredValue &LoweredArg = getLoweredValue (Arg);
1399
- if (LoweredArg.isAddress ()) {
1400
- Vals.push_back (LoweredArg.getAddress ().getAddress ());
1401
- return IndirectValue;
1402
- } else if (LoweredArg.kind == LoweredValue::Kind::Explosion) {
1403
- Explosion e = LoweredArg.getExplosion (*this );
1404
- for (auto val : e.claimAll ())
1405
- Vals.push_back (val);
1406
- } else
1407
- llvm_unreachable (" unhandled argument kind" );
1408
- return DirectValue;
1409
- }
1410
-
1411
1391
void IRGenSILFunction::emitFunctionArgDebugInfo (SILBasicBlock *BB) {
1412
1392
// Emit the artificial error result argument.
1413
1393
auto FnTy = CurSILFn->getLoweredFunctionType ();
0 commit comments