aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-24 00:06:56 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-24 00:06:56 +0000
commit3467e30edf63b6d8a8d446186674ba9e4b7885a9 (patch)
treee4cd1b684be7e3a46852382a219a859d8d4217f6 /include
parenta8ab5fc772e1eaaa1066d1c9c4135ac875d79365 (diff)
downloadexternal_llvm-3467e30edf63b6d8a8d446186674ba9e4b7885a9.zip
external_llvm-3467e30edf63b6d8a8d446186674ba9e4b7885a9.tar.gz
external_llvm-3467e30edf63b6d8a8d446186674ba9e4b7885a9.tar.bz2
Create a new class: AttributeSetNode.
This is a helper class for the AttributeSetImpl class. It holds a set of attributes that apply to a single element: function, return type, or parameter. These are uniqued. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IR/Attributes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index 886384a..6ff0337 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -18,6 +18,7 @@
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseSet.h"
+#include "llvm/ADT/FoldingSet.h"
#include "llvm/Support/MathExtras.h"
#include <cassert>
#include <string>
@@ -129,6 +130,10 @@ public:
bool operator==(AttrKind K) const;
bool operator!=(AttrKind K) const;
+ bool operator<(Attribute A) const;
+
+ void Profile(FoldingSetNodeID &ID) const;
+
// FIXME: Remove these 'operator' methods.
bool operator==(const Attribute &A) const {
return pImpl == A.pImpl;