Have AttributesImpl defriend the Attributes class.

llvm-svn: 166012
This commit is contained in:
Bill Wendling 2012-10-16 05:57:28 +00:00
parent 3ffbac4432
commit 147ee8e34f
2 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ unsigned Attributes::getStackAlignment() 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) {

View File

@ -22,9 +22,7 @@ namespace llvm {
class Attributes;
class AttributesImpl : public FoldingSetNode {
friend class Attributes;
uint64_t Bits; // FIXME: We will be expanding this.
public:
AttributesImpl(uint64_t bits) : Bits(bits) {}
@ -36,6 +34,8 @@ public:
uint64_t getAlignment() const;
uint64_t getStackAlignment() const;
uint64_t Raw() const { return Bits; } // FIXME: Remove.
static uint64_t getAttrMask(uint64_t Val);
void Profile(FoldingSetNodeID &ID) const {