diff options
author | Duncan Sands <baldrick@free.fr> | 2008-04-08 07:23:58 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-04-08 07:23:58 +0000 |
commit | e1fca41a6a76ebd133176b29e81d2419b348e991 (patch) | |
tree | 2dbab1fd56e77fc6ebd7537ffdb49bbe24dc6f73 /include | |
parent | bc610fcd224a41520f840c5d55d592a6c55c2633 (diff) | |
download | external_llvm-e1fca41a6a76ebd133176b29e81d2419b348e991.zip external_llvm-e1fca41a6a76ebd133176b29e81d2419b348e991.tar.gz external_llvm-e1fca41a6a76ebd133176b29e81d2419b348e991.tar.bz2 |
Convenience method for setting the nounwind
attribute for a function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Function.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index ae51fe2..28c301f 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -178,6 +178,7 @@ public: /// @brief Determine if the function cannot return. bool doesNotReturn() const { return paramHasAttr(0, ParamAttr::NoReturn); } + void setDoesNotThrow(bool doesNotThrow = true); /// @brief Determine if the function cannot unwind. bool doesNotThrow() const { |