mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-07 02:56:52 +00:00
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
This commit is contained in:
parent
6de6030718
commit
1717f3af08
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user