diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-08 16:40:19 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-08 16:40:19 +0000 |
commit | de4827dd340b77640b4cead98502148d8a5bcf70 (patch) | |
tree | 348c444a659bbb7e245e5fe8c2cbdd6daecc1485 /clang/lib/Frontend/PCHReaderStmt.cpp | |
parent | 12852d9521243840968d38e9e4ee704f3713c3dd (diff) | |
download | bcm5719-llvm-de4827dd340b77640b4cead98502148d8a5bcf70.tar.gz bcm5719-llvm-de4827dd340b77640b4cead98502148d8a5bcf70.zip |
Extend ObjCMessageExpr for class method sends with the source location
of the class name.
llvm-svn: 97943
Diffstat (limited to 'clang/lib/Frontend/PCHReaderStmt.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHReaderStmt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PCHReaderStmt.cpp b/clang/lib/Frontend/PCHReaderStmt.cpp index d123694d699..7b94805d399 100644 --- a/clang/lib/Frontend/PCHReaderStmt.cpp +++ b/clang/lib/Frontend/PCHReaderStmt.cpp @@ -792,8 +792,9 @@ unsigned PCHStmtReader::VisitObjCMessageExpr(ObjCMessageExpr *E) { cast_or_null<Expr>(StmtStack[StmtStack.size() - E->getNumArgs() - 1])); if (!E->getReceiver()) { ObjCMessageExpr::ClassInfo CI; - CI.first = cast_or_null<ObjCInterfaceDecl>(Reader.GetDecl(Record[Idx++])); - CI.second = Reader.GetIdentifierInfo(Record, Idx); + CI.Decl = cast_or_null<ObjCInterfaceDecl>(Reader.GetDecl(Record[Idx++])); + CI.Name = Reader.GetIdentifierInfo(Record, Idx); + CI.Loc = SourceLocation::getFromRawEncoding(Record[Idx++]); E->setClassInfo(CI); } |