summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-10-17 18:22:52 +0000
committerBill Wendling <isanbard@gmail.com>2011-10-17 18:22:52 +0000
commit2a83a71c2a8e296ea803b50882d30b1794cb3e0e (patch)
tree96b7b676d123da2f2056b3bf78aa733a288927fe /llvm/lib/CodeGen
parent0317b65367563749d277ca31b6d464fc5f1d68c6 (diff)
downloadbcm5719-llvm-2a83a71c2a8e296ea803b50882d30b1794cb3e0e.tar.gz
bcm5719-llvm-2a83a71c2a8e296ea803b50882d30b1794cb3e0e.zip
Now that we have the ReturnsTwice function attribute, this method is
obsolete. Check the attribute instead. <rdar://problem/8031714> llvm-svn: 142212
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 68b9146adfe..2db91ea40b6 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -374,7 +374,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
}
// Determine if there is a call to setjmp in the machine function.
- MF->setCallsSetJmp(Fn.callsFunctionThatReturnsTwice());
+ MF->setCallsSetJmp(Fn.hasFnAttr(Attribute::ReturnsTwice));
// Replace forward-declared registers with the registers containing
// the desired value.
OpenPOWER on IntegriCloud