Try again to revert the bad patch. The tree was reverted for some unknown reason

before the last time.

--- Reverse-merging r171442 into '.':
U    include/llvm/IR/Attributes.h
U    lib/IR/Attributes.cpp
U    lib/IR/AttributeImpl.h



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171448 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2013-01-03 01:54:39 +00:00
parent 467fa3ea7f
commit 22bd641739
3 changed files with 45 additions and 68 deletions

View File

@@ -42,6 +42,9 @@ public:
return Vals;
}
bool contains(Attribute::AttrKind Kind) const;
bool contains(StringRef Kind) const;
bool hasAttribute(Attribute::AttrKind A) const;
bool hasAttributes() const;
@@ -50,11 +53,19 @@ public:
uint64_t getAlignment() const;
uint64_t getStackAlignment() const;
bool operator==(Attribute::AttrKind Kind) const;
bool operator!=(Attribute::AttrKind Kind) const;
bool operator==(Attribute::AttrKind Kind) const {
return contains(Kind);
}
bool operator!=(Attribute::AttrKind Kind) const {
return !contains(Kind);
}
bool operator==(StringRef Kind) const;
bool operator!=(StringRef Kind) const;
bool operator==(StringRef Kind) const {
return contains(Kind);
}
bool operator!=(StringRef Kind) const {
return !contains(Kind);
}
uint64_t getBitMask() const; // FIXME: Remove.