[cfe-commits] r82526 - in /cfe/trunk: lib/Frontend/PCHReaderDecl.cpp lib/Frontend/PCHWriterDecl.cpp test/Frontend/ast-main.c
Daniel Dunbar
daniel at zuster.org
Mon Sep 21 22:38:14 PDT 2009
Author: ddunbar
Date: Tue Sep 22 00:38:14 2009
New Revision: 82526
URL: http://llvm.org/viewvc/llvm-project?rev=82526&view=rev
Log:
Update PCH serialization of FunctionDecl flags.
Modified:
cfe/trunk/lib/Frontend/PCHReaderDecl.cpp
cfe/trunk/lib/Frontend/PCHWriterDecl.cpp
cfe/trunk/test/Frontend/ast-main.c
Modified: cfe/trunk/lib/Frontend/PCHReaderDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHReaderDecl.cpp?rev=82526&r1=82525&r2=82526&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHReaderDecl.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHReaderDecl.cpp Tue Sep 22 00:38:14 2009
@@ -230,6 +230,9 @@
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++];
Modified: cfe/trunk/lib/Frontend/PCHWriterDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHWriterDecl.cpp?rev=82526&r1=82525&r2=82526&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriterDecl.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriterDecl.cpp Tue Sep 22 00:38:14 2009
@@ -230,6 +230,9 @@
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());
Modified: cfe/trunk/test/Frontend/ast-main.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/ast-main.c?rev=82526&r1=82525&r2=82526&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/ast-main.c (original)
+++ cfe/trunk/test/Frontend/ast-main.c Tue Sep 22 00:38:14 2009
@@ -1,8 +1,7 @@
-// RUN: clang -emit-llvm -S -o %t1.ll %s &&
+// RUN: clang -emit-llvm -S -o %t1.ll -x c - < %s &&
// RUN: clang -emit-ast -o %t.ast %s &&
-// RUN: clang -emit-llvm -S -o %t2.ll %t.ast &&
+// RUN: clang -emit-llvm -S -o %t2.ll -x ast - < %t.ast &&
// RUN: diff %t1.ll %t2.ll
-// XFAIL: *
int main() {
return 0;
More information about the cfe-commits
mailing list