We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff59b7a commit 2e4809aCopy full SHA for 2e4809a
llvm/include/llvm/IR/Function.h
@@ -255,6 +255,15 @@ class LLVM_EXTERNAL_VISIBILITY Function : public GlobalObject,
255
: removeFnAttr("no-stack-arg-probe");
256
}
257
258
+ /// Indicate that whether we should disable the try statements.
259
+ bool doesDisableTryStmt() const {
260
+ return hasFnAttribute("no-try-stmt");
261
+ }
262
+ void setDoesDisableTryStmt(bool Disabled = true) {
263
+ Disabled ? addFnAttr("no-try-stmt")
264
+ : removeFnAttr("no-try-stmt");
265
266
+
267
/// Is SEHFilterFunction?
268
bool isSEHFilterFunction() const {
269
return hasFnAttribute(Attribute::IsSEHFilterFunction);
0 commit comments