diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-10-17 18:43:40 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-10-17 18:43:40 +0000 |
commit | 3c5e60994f53eef2808a33b5ca6c3dffc2168054 (patch) | |
tree | f77554018088b20adc18a5aca234db259071c838 /include | |
parent | 8f3af87e99b9556224480f1aa18d340fb343bbf6 (diff) | |
download | llvm-3c5e60994f53eef2808a33b5ca6c3dffc2168054.tar.gz llvm-3c5e60994f53eef2808a33b5ca6c3dffc2168054.tar.bz2 llvm-3c5e60994f53eef2808a33b5ca6c3dffc2168054.tar.xz |
Correct over-zealous removal of hack.
Some code want to check that *any* call within a function has the 'returns
twice' attribute, not just that the current function has one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Function.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 4386249f5f..678651bbf1 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -425,6 +425,10 @@ public: /// bool hasAddressTaken(const User** = 0) const; + /// callsFunctionThatReturnsTwice - Return true if the function has a call to + /// setjmp or other function that gcc recognizes as "returning twice". + bool callsFunctionThatReturnsTwice() const; + private: // Shadow Value::setValueSubclassData with a private forwarding method so that // subclasses cannot accidentally use it. |