[cfe-commits] r62960 - /cfe/trunk/lib/CodeGen/CodeGenTypes.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Sun Jan 25 05:35:30 PST 2009


Author: cornedbee
Date: Sun Jan 25 07:35:30 2009
New Revision: 62960

URL: http://llvm.org/viewvc/llvm-project?rev=62960&view=rev
Log:
Introduce an explicit case for member pointers in CodeGenTypes. However, it simply asserts.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenTypes.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.cpp?rev=62960&r1=62959&r2=62960&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.cpp Sun Jan 25 07:35:30 2009
@@ -312,6 +312,13 @@
     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.





More information about the cfe-commits mailing list