mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +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:
@ -1,4 +1,4 @@
|
|||||||
//===-- StructRetPromotion.cpp - Promote sret arguments ------------------===//
|
//===-- StructRetPromotion.cpp - Promote sret arguments -------------------===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
@ -57,7 +57,6 @@ namespace {
|
|||||||
bool isSafeToUpdateAllCallers(Function *F);
|
bool isSafeToUpdateAllCallers(Function *F);
|
||||||
Function *cloneFunctionBody(Function *F, const StructType *STy);
|
Function *cloneFunctionBody(Function *F, const StructType *STy);
|
||||||
CallGraphNode *updateCallSites(Function *F, Function *NF);
|
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;
|
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;
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user