diff options
| author | John McCall <rjmccall@apple.com> | 2010-05-17 23:56:34 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-05-17 23:56:34 +0000 |
| commit | a9e6e8d6543f49df5207a98220a83df2959be1fe (patch) | |
| tree | b7a8737a7bf1dff488d6478c2bfcd6a6c3e399db /clang/lib/AST/ASTContext.cpp | |
| parent | 3b43338870aa4bef182afd4ce971eff48580a193 (diff) | |
| download | bcm5719-llvm-a9e6e8d6543f49df5207a98220a83df2959be1fe.tar.gz bcm5719-llvm-a9e6e8d6543f49df5207a98220a83df2959be1fe.zip | |
Teach the ObjC mangler to ignore member pointers just like gcc does.
llvm-svn: 104001
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index cd567a6142e..11b4546e37c 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -3715,6 +3715,11 @@ void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string& S, return; } + // gcc just blithely ignores member pointers. + // TODO: maybe there should be a mangling for these + if (T->getAs<MemberPointerType>()) + return; + assert(0 && "@encode for type not implemented!"); } |

