]> granicus.if.org Git - clang/commitdiff
Introduce an explicit case for member pointers in CodeGenTypes. However, it simply...
authorSebastian Redl <sebastian.redl@getdesigned.at>
Sun, 25 Jan 2009 13:35:30 +0000 (13:35 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Sun, 25 Jan 2009 13:35:30 +0000 (13:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62960 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenTypes.cpp

index 9e57aafa02a3eec531334ea952cd8e2aedddfa8f..aac6e8d64406940708809acf5d24f11c1eacab8e 100644 (file)
@@ -312,6 +312,13 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) {
     return llvm::PointerType::get(ConvertTypeRecursive(FTy), 
                                   FTy.getAddressSpace());
   }
+
+  case Type::MemberPointer:
+    // FIXME: Implement C++ pointer-to-member. The GCC representation is
+    // documented here:
+    // http://gcc.gnu.org/onlinedocs/gccint/Type-Layout.html#Type-Layout
+    assert(0 && "FIXME: We can't handle member pointers yet.");
+    return llvm::OpaqueType::get();
   }
   
   // FIXME: implement.