summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-15 07:26:51 +0000
committerChris Lattner <sabre@nondot.org>2009-12-15 07:26:51 +0000
commit2f3da9b2059acbba071d7a38589d8cd373383dfa (patch)
treec2dec7e4b5e98d3d69cdbeaaecbe76da1269befa /clang/lib/Analysis/CFRefCount.cpp
parent45d040bd85e0775156c65d99b329b7da5e764ef7 (diff)
downloadbcm5719-llvm-2f3da9b2059acbba071d7a38589d8cd373383dfa.tar.gz
bcm5719-llvm-2f3da9b2059acbba071d7a38589d8cd373383dfa.zip
update to match LLVM API change:
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. llvm-svn: 91422
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 1df4f7cb519..9639ad98fa6 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -675,11 +675,9 @@ template <> struct DenseMapInfo<ObjCSummaryKey> {
RHS.getSelector());
}
- static bool isPod() {
- return DenseMapInfo<ObjCInterfaceDecl*>::isPod() &&
- DenseMapInfo<Selector>::isPod();
- }
};
+template <>
+struct isPodLike<ObjCSummaryKey> { static const bool value = true; };
} // end llvm namespace
namespace {
OpenPOWER on IntegriCloud