aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2008-05-16 20:39:43 +0000
committerEric Christopher <echristo@apple.com>2008-05-16 20:39:43 +0000
commit0bf7b414ae0bb6699cadc3a210d18cfec44e9354 (patch)
treee971e77f496a9001380a6cf15a17f52af1b923e0 /include/llvm/Function.h
parentea7dd407149332e5ab1ffc42c8344ecd1751008f (diff)
Add functions to enable adding a single attribute to a function and
its associated call site. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 28c301fe2f..5dd8502d3a 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -170,6 +170,9 @@ public:
bool paramHasAttr(unsigned i, ParameterAttributes attr) const {
return ParamAttrs.paramHasAttr(i, attr);
}
+
+ /// addParamAttr - adds the attribute to the list of attributes.
+ void addParamAttr(unsigned i, ParameterAttributes attr);
/// @brief Extract the alignment for a call or parameter (0=unknown).
unsigned getParamAlignment(unsigned i) const {