aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-05-25 12:54:08 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-05-25 12:54:08 +0000
commit52f6a4de951edf890c3988c92318b13e45fd3b85 (patch)
tree518d00e57160a1fd2b24af7ca46fd06ebe58524e /include/llvm/Function.h
parent6cd71c6292b8803fb3affe7cfc6f527fcdb280d8 (diff)
Fix some issues Duncan found in the previous commit.
I kept the reference to the ABI since that is the common case. The -fno-asynchronous-unwind-tables option is a user controlled way of breaking the ABI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 9319a5b39e..1edc17636c 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -253,7 +253,8 @@ public:
else removeFnAttr(Attribute::NoUnwind);
}
- /// @brief True if the ABI mandates this function be in a unwind table.
+ /// @brief True if the ABI mandates (or the user requested) that this
+ /// function be in a unwind table.
bool hasUWTable() const {
return hasFnAttr(Attribute::UWTable);
}
@@ -264,7 +265,7 @@ public:
removeFnAttr(Attribute::UWTable);
}
- /// @brief True if this function needs in a unwind table.
+ /// @brief True if this function needs an unwind table.
bool needsUnwindTableEntry() const {
return hasUWTable() || !doesNotThrow();
}