summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/IR/Function.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/IR/Function.h')
-rw-r--r--llvm/include/llvm/IR/Function.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/Function.h b/llvm/include/llvm/IR/Function.h
index cb87a4498032..d96d506a9b05 100644
--- a/llvm/include/llvm/IR/Function.h
+++ b/llvm/include/llvm/IR/Function.h
@@ -430,6 +430,9 @@ public:
/// Return the attribute for the given attribute kind.
Attribute getFnAttribute(StringRef Kind) const;
+ /// Return the attribute for the given attribute kind for the return value.
+ Attribute getRetAttribute(Attribute::AttrKind Kind) const;
+
/// For a string attribute \p Kind, parse attribute as an integer.
///
/// \returns \p Default if attribute is not present.