/// Alignment - The alignment of the function.
unsigned Alignment;
- /// HasReturnsTwiceCall - Returns true if there's a call with a
- /// "returns_twice" attribute, like setjmp.
- bool HasReturnsTwiceCall;
+ /// CallsSetJmp - True if the function calls setjmp or sigsetjmp. This is used
+ /// to limit optimizations which cannot reason about the control flow of
+ /// setjmp.
+ bool CallsSetJmp;
MachineFunction(const MachineFunction &); // DO NOT IMPLEMENT
void operator=(const MachineFunction&); // DO NOT IMPLEMENT
if (Alignment < A) Alignment = A;
}
- /// hasReturnsTwiceCall - Returns true if there's a call with a
- /// "returns_twice" attribute, like setjmp.
- bool hasReturnsTwiceCall() const {
- return HasReturnsTwiceCall;
+ /// callsSetJmp - Returns true if the function calls setjmp or sigsetjmp.
+ bool callsSetJmp() const {
+ return CallsSetJmp;
}
- void setReturnsTwiceCall(bool B) {
- HasReturnsTwiceCall = B;
+
+ /// setCallsSetJmp - Set a flag that indicates if there's a call to setjmp or
+ /// sigsetjmp.
+ void setCallsSetJmp(bool B) {
+ CallsSetJmp = B;
}
/// getInfo - Keep track of various per-function pieces of information for