summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHWriter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-15 18:43:11 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-15 18:43:11 +0000
commite95304ac93c84487682f74d2a49963be0e1785d1 (patch)
treecc916f7704927e0a5d5afda82ab988f1fd02133c /clang/lib/Frontend/PCHWriter.cpp
parent001e99449593d2078290ff6db9097142fd0b433b (diff)
downloadbcm5719-llvm-e95304ac93c84487682f74d2a49963be0e1785d1.tar.gz
bcm5719-llvm-e95304ac93c84487682f74d2a49963be0e1785d1.zip
PCH support for the string literal of a FileScopeAsmDecl.
Some minor cleanup. llvm-svn: 69196
Diffstat (limited to 'clang/lib/Frontend/PCHWriter.cpp')
-rw-r--r--clang/lib/Frontend/PCHWriter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp
index 0b5a2a65d15..46db1428e31 100644
--- a/clang/lib/Frontend/PCHWriter.cpp
+++ b/clang/lib/Frontend/PCHWriter.cpp
@@ -194,12 +194,12 @@ void PCHTypeWriter::VisitEnumType(const EnumType *T) {
void
PCHTypeWriter::VisitTemplateSpecializationType(
const TemplateSpecializationType *T) {
- // FIXME: Serialize this type
+ // FIXME: Serialize this type (C++ only)
assert(false && "Cannot serialize template specialization types");
}
void PCHTypeWriter::VisitQualifiedNameType(const QualifiedNameType *T) {
- // FIXME: Serialize this type
+ // FIXME: Serialize this type (C++ only)
assert(false && "Cannot serialize qualified name types");
}
@@ -381,7 +381,7 @@ void PCHDeclWriter::VisitVarDecl(VarDecl *D) {
void PCHDeclWriter::VisitParmVarDecl(ParmVarDecl *D) {
VisitVarDecl(D);
Record.push_back(D->getObjCDeclQualifier()); // FIXME: stable encoding
- // FIXME: emit default argument
+ // FIXME: emit default argument (C++)
// FIXME: why isn't the "default argument" just stored as the initializer
// in VarDecl?
Code = pch::DECL_PARM_VAR;
@@ -395,7 +395,7 @@ void PCHDeclWriter::VisitOriginalParmVarDecl(OriginalParmVarDecl *D) {
void PCHDeclWriter::VisitFileScopeAsmDecl(FileScopeAsmDecl *D) {
VisitDecl(D);
- // FIXME: Emit the string literal
+ Writer.AddExpr(D->getAsmString());
Code = pch::DECL_FILE_SCOPE_ASM;
}
OpenPOWER on IntegriCloud