mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Uniquify the AttributeImpl based on the Constant pointer, since those are
already uniquified. Note: This will be expanded in the future to add more than just one pointer value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171245 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -49,7 +49,9 @@ public:
|
|||||||
void Profile(FoldingSetNodeID &ID) const {
|
void Profile(FoldingSetNodeID &ID) const {
|
||||||
Profile(ID, Data);
|
Profile(ID, Data);
|
||||||
}
|
}
|
||||||
static void Profile(FoldingSetNodeID &ID, Constant *Data);
|
static void Profile(FoldingSetNodeID &ID, Constant *Data) {
|
||||||
|
ID.AddPointer(Data);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
@@ -363,10 +363,6 @@ uint64_t AttributeImpl::getStackAlignment() const {
|
|||||||
return getBitMask() & getAttrMask(Attribute::StackAlignment);
|
return getBitMask() & getAttrMask(Attribute::StackAlignment);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AttributeImpl::Profile(FoldingSetNodeID &ID, Constant *Data) {
|
|
||||||
ID.AddInteger(cast<ConstantInt>(Data)->getZExtValue());
|
|
||||||
}
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// AttributeSetImpl Definition
|
// AttributeSetImpl Definition
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
Reference in New Issue
Block a user