diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-19 03:51:16 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-19 03:51:16 +0000 |
commit | bad351822117eaf280081494e3dbe4a06c0dbfcf (patch) | |
tree | e0207c1035354d16bc45f24a333aeefdecb584be /lib/AST/StmtSerialization.cpp | |
parent | 6d898e8cf2b6dced49237b47cce57e3c6c4c431f (diff) |
Generalize printing of nested-name-specifier sequences for use in both
QualifiedNameType and QualifiedDeclRefExpr. We now keep track of the
exact nested-name-specifier spelling for a QualifiedDeclRefExpr, and
use that spelling when printing ASTs. This fixes PR3493.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/StmtSerialization.cpp')
-rw-r--r-- | lib/AST/StmtSerialization.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/StmtSerialization.cpp b/lib/AST/StmtSerialization.cpp index 78366a1514..5184311466 100644 --- a/lib/AST/StmtSerialization.cpp +++ b/lib/AST/StmtSerialization.cpp @@ -1589,7 +1589,8 @@ CXXTryStmt::CreateImpl(llvm::Deserializer& D, ASTContext& C) { void QualifiedDeclRefExpr::EmitImpl(llvm::Serializer& S) const { DeclRefExpr::EmitImpl(S); - S.Emit(NestedNameLoc); + S.Emit(QualifierRange); + // FIXME: Serialize nested-name-specifiers } QualifiedDeclRefExpr* |