Introduce an explicit case for member pointers in CodeGenTypes. However, it simply asserts.

llvm-svn: 62960
This commit is contained in:
Sebastian Redl 2009-01-25 13:35:30 +00:00
parent a865ade730
commit 8b2540439f
1 changed files with 7 additions and 0 deletions

View File

@ -312,6 +312,13 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) {
return llvm::PointerType::get(ConvertTypeRecursive(FTy), return llvm::PointerType::get(ConvertTypeRecursive(FTy),
FTy.getAddressSpace()); 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. // FIXME: implement.