diff options
author | Pawel Wodnicki <pawel@32bitmicro.com> | 2012-11-21 22:21:40 +0000 |
---|---|---|
committer | Pawel Wodnicki <pawel@32bitmicro.com> | 2012-11-21 22:21:40 +0000 |
commit | 3e2cbf9d08ffd6f26302c19fdc7997e441c741e9 (patch) | |
tree | 03f936edbb07aad478f391f460fe3602da8044e4 /lib/VMCore/AttributesImpl.h | |
parent | 7022c651cab8a4e3e310e024a2028eb9fa5b482e (diff) | |
download | llvm-3e2cbf9d08ffd6f26302c19fdc7997e441c741e9.tar.gz llvm-3e2cbf9d08ffd6f26302c19fdc7997e441c741e9.tar.bz2 llvm-3e2cbf9d08ffd6f26302c19fdc7997e441c741e9.tar.xz |
Reverting 168457
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@168465 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AttributesImpl.h')
-rw-r--r-- | lib/VMCore/AttributesImpl.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/lib/VMCore/AttributesImpl.h b/lib/VMCore/AttributesImpl.h index 5c107e1ebb..b4a0f615f3 100644 --- a/lib/VMCore/AttributesImpl.h +++ b/lib/VMCore/AttributesImpl.h @@ -15,11 +15,12 @@ #ifndef LLVM_ATTRIBUTESIMPL_H #define LLVM_ATTRIBUTESIMPL_H -#include "llvm/Attributes.h" #include "llvm/ADT/FoldingSet.h" namespace llvm { +class Attributes; + class AttributesImpl : public FoldingSetNode { uint64_t Bits; // FIXME: We will be expanding this. public: @@ -45,27 +46,6 @@ public: } }; -class AttributeListImpl : public FoldingSetNode { - // AttributesList is uniqued, these should not be publicly available. - void operator=(const AttributeListImpl &) LLVM_DELETED_FUNCTION; - AttributeListImpl(const AttributeListImpl &) LLVM_DELETED_FUNCTION; -public: - SmallVector<AttributeWithIndex, 4> Attrs; - - AttributeListImpl(ArrayRef<AttributeWithIndex> attrs) - : Attrs(attrs.begin(), attrs.end()) {} - - void Profile(FoldingSetNodeID &ID) const { - Profile(ID, Attrs); - } - static void Profile(FoldingSetNodeID &ID, ArrayRef<AttributeWithIndex> Attrs){ - for (unsigned i = 0, e = Attrs.size(); i != e; ++i) { - ID.AddInteger(Attrs[i].Attrs.Raw()); - ID.AddInteger(Attrs[i].Index); - } - } -}; - } // end llvm namespace #endif |