summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
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/CodeGen
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/CodeGen')
-rw-r--r--clang/lib/CodeGen/GlobalDecl.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/GlobalDecl.h b/clang/lib/CodeGen/GlobalDecl.h
index b812020f2aa..b054312a018 100644
--- a/clang/lib/CodeGen/GlobalDecl.h
+++ b/clang/lib/CodeGen/GlobalDecl.h
@@ -96,15 +96,14 @@ namespace llvm {
return LHS == RHS;
}
- static bool isPod() {
- // GlobalDecl isn't *technically* a POD type. However, we can get
- // away with calling it a POD type since its copy constructor,
- // copy assignment operator, and destructor are all trivial.
- return true;
- }
-
};
-}
+ // GlobalDecl isn't *technically* a POD type. However, its copy constructor,
+ // copy assignment operator, and destructor are all trivial.
+ template <>
+ struct isPodLike<clang::CodeGen::GlobalDecl> {
+ static const bool value = true;
+ };
+} // end namespace llvm
#endif
OpenPOWER on IntegriCloud