zap dead code.

llvm-svn: 112130
This commit is contained in:
Chris Lattner 2010-08-26 01:13:54 +00:00
parent 184eaea855
commit 07afbd5a08
1 changed files with 1 additions and 13 deletions

View File

@ -1,4 +1,4 @@
//===-- StructRetPromotion.cpp - Promote sret arguments ------------------===//
//===-- StructRetPromotion.cpp - Promote sret arguments -------------------===//
//
// The LLVM Compiler Infrastructure
//
@ -57,7 +57,6 @@ namespace {
bool isSafeToUpdateAllCallers(Function *F);
Function *cloneFunctionBody(Function *F, const StructType *STy);
CallGraphNode *updateCallSites(Function *F, Function *NF);
bool nestedStructType(const StructType *STy);
};
}
@ -351,14 +350,3 @@ CallGraphNode *SRETPromotion::updateCallSites(Function *F, Function *NF) {
return NF_CGN;
}
/// nestedStructType - Return true if STy includes any
/// other aggregate types
bool SRETPromotion::nestedStructType(const StructType *STy) {
unsigned Num = STy->getNumElements();
for (unsigned i = 0; i < Num; i++) {
const Type *Ty = STy->getElementType(i);
if (!Ty->isSingleValueType() && !Ty->isVoidTy())
return true;
}
return false;
}