diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-15 07:27:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-15 07:27:58 +0000 |
commit | 729a8acc9f2f4bd0751da20d0e85a8c02bdc5375 (patch) | |
tree | a71a2dad61ae2560ed3f125a4b56ce2b2fa259d4 | |
parent | 4bbf4ee1491637c247e195e19e3e4a8ee5ad72fa (diff) | |
download | external_llvm-729a8acc9f2f4bd0751da20d0e85a8c02bdc5375.zip external_llvm-729a8acc9f2f4bd0751da20d0e85a8c02bdc5375.tar.gz external_llvm-729a8acc9f2f4bd0751da20d0e85a8c02bdc5375.tar.bz2 |
Lang verified that SlotIndex is "pod like" even though it isn't a pod.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91423 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/SlotIndexes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SlotIndexes.h b/include/llvm/CodeGen/SlotIndexes.h index 0cc0007..9a85ee1 100644 --- a/include/llvm/CodeGen/SlotIndexes.h +++ b/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); |