mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add ImmutableSet profiling info for 'bool'.
Useful for tri-state maps: true, false, and "no data yet". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194266 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
323ac85d6a
commit
fffdcacff2
@ -851,6 +851,18 @@ PROFILE_INTEGER_INFO(unsigned long long)
|
||||
|
||||
#undef PROFILE_INTEGER_INFO
|
||||
|
||||
/// Profile traits for booleans.
|
||||
template <>
|
||||
struct ImutProfileInfo<bool> {
|
||||
typedef const bool value_type;
|
||||
typedef const bool& value_type_ref;
|
||||
|
||||
static inline void Profile(FoldingSetNodeID& ID, value_type_ref X) {
|
||||
ID.AddBoolean(X);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/// Generic profile trait for pointer types. We treat pointers as
|
||||
/// references to unique objects.
|
||||
template <typename T>
|
||||
|
Loading…
Reference in New Issue
Block a user