mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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:
@@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user