mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
s/isReturnStruct()/hasStructRetAttr()/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -255,7 +255,7 @@ DAE::Liveness DAE::getArgumentLiveness(const Argument &A) {
|
||||
const Function *F = A.getParent();
|
||||
|
||||
// If this is the return value of a struct function, it's not really dead.
|
||||
if (F->isStructReturn() && &*(F->arg_begin()) == &A)
|
||||
if (F->hasStructRetAttr() && &*(F->arg_begin()) == &A)
|
||||
return Live;
|
||||
|
||||
if (A.use_empty()) // First check, directly dead?
|
||||
|
||||
@@ -75,7 +75,7 @@ bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
|
||||
return false;
|
||||
|
||||
// Make sure that function returns struct.
|
||||
if (F->arg_size() == 0 || !F->isStructReturn() || F->doesNotReturn())
|
||||
if (F->arg_size() == 0 || !F->hasStructRetAttr() || F->doesNotReturn())
|
||||
return false;
|
||||
|
||||
assert (F->getReturnType() == Type::VoidTy && "Invalid function return type");
|
||||
|
||||
Reference in New Issue
Block a user