1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Lang verified that SlotIndex is "pod like" even though it isn't a pod.

llvm-svn: 91423
This commit is contained in:
Chris Lattner 2009-12-15 07:27:58 +00:00
parent 587962c667
commit 521f59a9f5

View File

@ -329,7 +329,6 @@ namespace llvm {
};
/// DenseMapInfo specialization for SlotIndex.
/// TODO: Not a POD?
template <>
struct DenseMapInfo<SlotIndex> {
static inline SlotIndex getEmptyKey() {
@ -345,6 +344,9 @@ namespace llvm {
return (LHS == RHS);
}
};
template <> struct isPodLike<SlotIndex> { static const bool value = true; };
inline raw_ostream& operator<<(raw_ostream &os, SlotIndex li) {
li.print(os);