mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-06 21:27:23 +00:00
Have AttributesImpl defriend the Attributes class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -88,7 +88,7 @@ unsigned Attributes::getStackAlignment() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint64_t Attributes::Raw() const {
|
uint64_t Attributes::Raw() const {
|
||||||
return Attrs ? Attrs->Bits : 0; // FIXME: Don't access this directly!
|
return Attrs ? Attrs->Raw() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Attributes Attributes::typeIncompatible(Type *Ty) {
|
Attributes Attributes::typeIncompatible(Type *Ty) {
|
||||||
|
@@ -22,9 +22,7 @@ namespace llvm {
|
|||||||
class Attributes;
|
class Attributes;
|
||||||
|
|
||||||
class AttributesImpl : public FoldingSetNode {
|
class AttributesImpl : public FoldingSetNode {
|
||||||
friend class Attributes;
|
|
||||||
uint64_t Bits; // FIXME: We will be expanding this.
|
uint64_t Bits; // FIXME: We will be expanding this.
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AttributesImpl(uint64_t bits) : Bits(bits) {}
|
AttributesImpl(uint64_t bits) : Bits(bits) {}
|
||||||
|
|
||||||
@@ -36,6 +34,8 @@ public:
|
|||||||
uint64_t getAlignment() const;
|
uint64_t getAlignment() const;
|
||||||
uint64_t getStackAlignment() const;
|
uint64_t getStackAlignment() const;
|
||||||
|
|
||||||
|
uint64_t Raw() const { return Bits; } // FIXME: Remove.
|
||||||
|
|
||||||
static uint64_t getAttrMask(uint64_t Val);
|
static uint64_t getAttrMask(uint64_t Val);
|
||||||
|
|
||||||
void Profile(FoldingSetNodeID &ID) const {
|
void Profile(FoldingSetNodeID &ID) const {
|
||||||
|
Reference in New Issue
Block a user