summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-15 07:27:58 +0000
committerChris Lattner <sabre@nondot.org>2009-12-15 07:27:58 +0000
commit9c45e0366456cd00fd39b3039d71314925160943 (patch)
tree5795907aa8a3290b79d225d44beeba45619b95cc /llvm
parent2f3da9b2059acbba071d7a38589d8cd373383dfa (diff)
downloadbcm5719-llvm-9c45e0366456cd00fd39b3039d71314925160943.tar.gz
bcm5719-llvm-9c45e0366456cd00fd39b3039d71314925160943.zip
Lang verified that SlotIndex is "pod like" even though it isn't a pod.
llvm-svn: 91423
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/SlotIndexes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/SlotIndexes.h b/llvm/include/llvm/CodeGen/SlotIndexes.h
index 0cc00070e32..9a85ee1fbf2 100644
--- a/llvm/include/llvm/CodeGen/SlotIndexes.h
+++ b/llvm/include/llvm/CodeGen/SlotIndexes.h
@@ -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);
OpenPOWER on IntegriCloud