diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-01-24 23:29:36 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-01-24 23:29:36 +0000 |
commit | 8edef7c31d27fc9d5d163660702a8a7730a0d19f (patch) | |
tree | 46f419050676ce6c571d9bca2a1775ba1f66ef6e /lib/AST/ASTContext.cpp | |
parent | dca2b7314f73fbb1e897befdc4f0ddaa9905d72c (diff) |
Make tentative parsing of pointer-to-member decls work, and fix other stuff pointed out by Doug.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 63e4ccc241..2662860af2 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -400,10 +400,11 @@ ASTContext::getTypeInfo(const Type *T) { // pointer size. return getTypeInfo(cast<ReferenceType>(T)->getPointeeType()); case Type::MemberPointer: { - // Note that this is not only platform- but also ABI-dependent. We follow + // FIXME: This is not only platform- but also ABI-dependent. We follow // the GCC ABI, where pointers to data are one pointer large, pointers to // functions two pointers. But if we want to support ABI compatibility with - // other compilers too, we need to delegate this completely to TargetInfo. + // other compilers too, we need to delegate this completely to TargetInfo + // or some ABI abstraction layer. QualType Pointee = cast<MemberPointerType>(T)->getPointeeType(); unsigned AS = Pointee.getAddressSpace(); Width = Target.getPointerWidth(AS); |