aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/PCHWriter.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-06-24 08:57:31 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-06-24 08:57:31 +0000
commit8dfbd8b252ba4e6cf4b7a3422f6ef0ca21312dfe (patch)
treecd1d2b1af04076cd7ce925673f7f8d962612164b /lib/Frontend/PCHWriter.cpp
parent5e1b7c2f419544a88537f7ff4e32ed744ba7b44e (diff)
Support a couple more C++ Exprs for PCH.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHWriter.cpp')
-rw-r--r--lib/Frontend/PCHWriter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Frontend/PCHWriter.cpp b/lib/Frontend/PCHWriter.cpp
index 77356ccd10..21ea5fcdc8 100644
--- a/lib/Frontend/PCHWriter.cpp
+++ b/lib/Frontend/PCHWriter.cpp
@@ -252,8 +252,10 @@ PCHTypeWriter::VisitTemplateTypeParmType(const TemplateTypeParmType *T) {
void
PCHTypeWriter::VisitDependentNameType(const DependentNameType *T) {
- // FIXME: Serialize this type (C++ only)
- assert(false && "Cannot serialize dependent name types");
+ Record.push_back(T->getKeyword());
+ Writer.AddNestedNameSpecifier(T->getQualifier(), Record);
+ Writer.AddIdentifierRef(T->getIdentifier(), Record);
+ Code = pch::TYPE_DEPENDENT_NAME;
}
void