[llvm-commits] [llvm] r67931 - /llvm/trunk/include/llvm/ADT/SmallPtrSet.h
Chris Lattner
sabre at nondot.org
Sat Mar 28 00:48:04 PDT 2009
Author: lattner
Date: Sat Mar 28 02:48:03 2009
New Revision: 67931
URL: http://llvm.org/viewvc/llvm-project?rev=67931&view=rev
Log:
declare everything as class to avoid angering the VC++ gods.
Modified:
llvm/trunk/include/llvm/ADT/SmallPtrSet.h
Modified: llvm/trunk/include/llvm/ADT/SmallPtrSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SmallPtrSet.h?rev=67931&r1=67930&r2=67931&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallPtrSet.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallPtrSet.h Sat Mar 28 02:48:03 2009
@@ -30,14 +30,16 @@
// 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);
More information about the llvm-commits
mailing list