mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Remove isPod() from DenseMapInfo, splitting it out to its own
isPodLike type trait. This is a generally useful type trait for more than just DenseMap, and we really care about whether something acts like a pod, not whether it really is a pod. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91421 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -66,7 +66,7 @@ namespace llvm {
|
||||
};
|
||||
|
||||
// Specialize DenseMapInfo for DebugLocTuple.
|
||||
template<> struct DenseMapInfo<DebugLocTuple> {
|
||||
template<> struct DenseMapInfo<DebugLocTuple> {
|
||||
static inline DebugLocTuple getEmptyKey() {
|
||||
return DebugLocTuple(0, 0, ~0U, ~0U);
|
||||
}
|
||||
@@ -85,9 +85,9 @@ namespace llvm {
|
||||
LHS.Line == RHS.Line &&
|
||||
LHS.Col == RHS.Col;
|
||||
}
|
||||
|
||||
static bool isPod() { return true; }
|
||||
};
|
||||
template <> struct isPodLike<DebugLocTuple> {static const bool value = true;};
|
||||
|
||||
|
||||
/// DebugLocTracker - This class tracks debug location information.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user