From 3e2cbf9d08ffd6f26302c19fdc7997e441c741e9 Mon Sep 17 00:00:00 2001 From: Pawel Wodnicki Date: Wed, 21 Nov 2012 22:21:40 +0000 Subject: Reverting 168457 git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@168465 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/AttributesImpl.h | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'lib/VMCore/AttributesImpl.h') 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 Attrs; - - AttributeListImpl(ArrayRef attrs) - : Attrs(attrs.begin(), attrs.end()) {} - - void Profile(FoldingSetNodeID &ID) const { - Profile(ID, Attrs); - } - static void Profile(FoldingSetNodeID &ID, ArrayRef 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 -- cgit v1.2.3