mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Added partial specialization of FoldingSetTrait for pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52989 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -428,6 +428,18 @@ public:
|
||||
operator const T&() const { return data; }
|
||||
};
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Partial specializations of FoldingSetTrait.
|
||||
|
||||
template<typename T> struct FoldingSetTrait<T*> {
|
||||
static inline void Profile(const T* X, FoldingSetNodeID& ID) {
|
||||
ID.AddPointer(X);
|
||||
}
|
||||
static inline void Profile(T* X, FoldingSetNodeID& ID) {
|
||||
ID.AddPointer(X);
|
||||
}
|
||||
};
|
||||
|
||||
} // End of namespace llvm.
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user