Skip to content

Commit beb0d00

Browse files
committed
Remove dead code.
1 parent 0d30020 commit beb0d00

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

lib/IRGen/IRGenSIL.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,6 @@ class IRGenSILFunction :
575575
//===--------------------------------------------------------------------===//
576576

577577
void visitSILBasicBlock(SILBasicBlock *BB);
578-
IndirectionKind getLoweredArgValue(llvm::SmallVectorImpl<llvm::Value *> &Vals,
579-
SILArgument *Arg, StringRef Name);
580578

581579
void emitFunctionArgDebugInfo(SILBasicBlock *BB);
582580

@@ -1390,24 +1388,6 @@ static unsigned countArgs(DeclContext *DC) {
13901388
return N;
13911389
}
13921390

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-
14111391
void IRGenSILFunction::emitFunctionArgDebugInfo(SILBasicBlock *BB) {
14121392
// Emit the artificial error result argument.
14131393
auto FnTy = CurSILFn->getLoweredFunctionType();

0 commit comments

Comments
 (0)