forked from OSchip/llvm-project
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. llvm-svn: 171245
This commit is contained in:
parent
3e4c4c9607
commit
5e8ff877f4
|
@ -49,7 +49,9 @@ public:
|
|||
void Profile(FoldingSetNodeID &ID) const {
|
||||
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);
|
||||
}
|
||||
|
||||
void AttributeImpl::Profile(FoldingSetNodeID &ID, Constant *Data) {
|
||||
ID.AddInteger(cast<ConstantInt>(Data)->getZExtValue());
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// AttributeSetImpl Definition
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue