summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-22 05:38:14 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-22 05:38:14 +0000
commitb45012dcdea35a38c7b7719fa3a2330298417885 (patch)
treeb7cf493f685846b4693fa7a5207bdd9269a4cf1a /clang/lib
parent2d925ebd0ab1c2cce4ba3fe7e587d33d2d45a0f5 (diff)
downloadbcm5719-llvm-b45012dcdea35a38c7b7719fa3a2330298417885.tar.gz
bcm5719-llvm-b45012dcdea35a38c7b7719fa3a2330298417885.zip
Update PCH serialization of FunctionDecl flags.
llvm-svn: 82526
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Frontend/PCHReaderDecl.cpp3
-rw-r--r--clang/lib/Frontend/PCHWriterDecl.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp
index 67ffabba863..77721bdf629 100644
--- a/clang/lib/Frontend/PCHReaderDecl.cpp
+++ b/clang/lib/Frontend/PCHReaderDecl.cpp
@@ -230,6 +230,9 @@ void PCHDeclReader::VisitFunctionDecl(FunctionDecl *FD) {
FD->setHasInheritedPrototype(Record[Idx++]);
FD->setHasWrittenPrototype(Record[Idx++]);
FD->setDeleted(Record[Idx++]);
+ FD->setTrivial(Record[Idx++]);
+ FD->setCopyAssignment(Record[Idx++]);
+ FD->setHasImplicitReturnZero(Record[Idx++]);
FD->setLocEnd(SourceLocation::getFromRawEncoding(Record[Idx++]));
// FIXME: C++ TemplateOrInstantiation
unsigned NumParams = Record[Idx++];
diff --git a/clang/lib/Frontend/PCHWriterDecl.cpp b/clang/lib/Frontend/PCHWriterDecl.cpp
index 3aacab33966..6261db5ff6f 100644
--- a/clang/lib/Frontend/PCHWriterDecl.cpp
+++ b/clang/lib/Frontend/PCHWriterDecl.cpp
@@ -230,6 +230,9 @@ void PCHDeclWriter::VisitFunctionDecl(FunctionDecl *D) {
Record.push_back(D->hasInheritedPrototype());
Record.push_back(D->hasWrittenPrototype());
Record.push_back(D->isDeleted());
+ Record.push_back(D->isTrivial());
+ Record.push_back(D->isCopyAssignment());
+ Record.push_back(D->hasImplicitReturnZero());
Writer.AddSourceLocation(D->getLocEnd(), Record);
// FIXME: C++ TemplateOrInstantiation
Record.push_back(D->param_size());
OpenPOWER on IntegriCloud