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 | 92432a8db1266f7932bce13a7e6354b0993838d3 (patch) | |
tree | 2dbab1fd56e77fc6ebd7537ffdb49bbe24dc6f73 /include | |
parent | 709877243661b2b450402d4911de892af5c74f43 (diff) | |
download | external_llvm-92432a8db1266f7932bce13a7e6354b0993838d3.zip external_llvm-92432a8db1266f7932bce13a7e6354b0993838d3.tar.gz external_llvm-92432a8db1266f7932bce13a7e6354b0993838d3.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 { |