mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 15:53:42 +00:00
zap dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e943c15621
commit
2a36545176
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user