aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-02-19 21:38:47 +0000
committerDale Johannesen <dalej@apple.com>2008-02-19 21:38:47 +0000
commit0d51e7ec0d2dcbea9e304fd58deb05f37eb75635 (patch)
tree9fbe3f267ddd1719fd5b3e0f95733e786c07fa5c /include/llvm/Function.h
parenta795aca96aca81ddeb4cd9628138926dd9fa612c (diff)
downloadexternal_llvm-0d51e7ec0d2dcbea9e304fd58deb05f37eb75635.zip
external_llvm-0d51e7ec0d2dcbea9e304fd58deb05f37eb75635.tar.gz
external_llvm-0d51e7ec0d2dcbea9e304fd58deb05f37eb75635.tar.bz2
Expand ParameterAttributes to 32 bits (in preparation
for adding alignment info, not there yet). Clean up interfaces to reference ParameterAttributes consistently. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 2c4f9d9..e2b41fe 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -22,6 +22,7 @@
#include "llvm/BasicBlock.h"
#include "llvm/Argument.h"
#include "llvm/Support/Annotation.h"
+#include "llvm/ParameterAttributes.h"
namespace llvm {
@@ -163,7 +164,7 @@ public:
void clearCollector();
/// @brief Determine whether the function has the given attribute.
- bool paramHasAttr(uint16_t i, unsigned attr) const;
+ bool paramHasAttr(uint16_t i, ParameterAttributes attr) const;
/// @brief Determine if the function cannot return.
bool doesNotReturn() const;