aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-28 07:48:03 +0000
committerChris Lattner <sabre@nondot.org>2009-03-28 07:48:03 +0000
commit1717f3af087e44d2c4b7fe2b35abc29a33d6d315 (patch)
tree30d55cc6f8e02a2bee1c4f9dd35abcad954a680c /include/llvm/ADT
parent6de603071879bdc5d7d663826354c24a9d176469 (diff)
downloadexternal_llvm-1717f3af087e44d2c4b7fe2b35abc29a33d6d315.zip
external_llvm-1717f3af087e44d2c4b7fe2b35abc29a33d6d315.tar.gz
external_llvm-1717f3af087e44d2c4b7fe2b35abc29a33d6d315.tar.bz2
declare everything as class to avoid angering the VC++ gods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/SmallPtrSet.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h
index 1818a11..47af228 100644
--- a/include/llvm/ADT/SmallPtrSet.h
+++ b/include/llvm/ADT/SmallPtrSet.h
@@ -30,14 +30,16 @@ class PointerLikeTypeInfo {
// Provide PointerLikeTypeInfo for all pointers.
template<typename T>
-struct PointerLikeTypeInfo<T*> {
+class PointerLikeTypeInfo<T*> {
+public:
static inline void *getAsVoidPointer(T* P) { return P; }
static inline T *getFromVoidPointer(void *P) {
return static_cast<T*>(P);
}
};
template<typename T>
-struct PointerLikeTypeInfo<const T*> {
+class PointerLikeTypeInfo<const T*> {
+public:
static inline const void *getAsVoidPointer(const T* P) { return P; }
static inline const T *getFromVoidPointer(const void *P) {
return static_cast<const T*>(P);