summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHWriterDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-07-20 22:03:28 +0000
committerDouglas Gregor <dgregor@apple.com>2009-07-20 22:03:28 +0000
commitd12df6b16001652a05d3d4d066b0fbc207a8a794 (patch)
tree8845ca8a87fa92c4058e4e4bceb398a9cbedc370 /clang/lib/Frontend/PCHWriterDecl.cpp
parent40c68ad3bb8c0c663f9e7af8f9bfa787f238f48e (diff)
downloadbcm5719-llvm-d12df6b16001652a05d3d4d066b0fbc207a8a794.tar.gz
bcm5719-llvm-d12df6b16001652a05d3d4d066b0fbc207a8a794.zip
Reuse VarDecl::Init to store the default argument of a ParmVarDecl,
reducing the size of ParmVarDecl by one pointer. Also means that we'll properly (de-)serialize default arguments in C++ PCH files. llvm-svn: 76487
Diffstat (limited to 'clang/lib/Frontend/PCHWriterDecl.cpp')
-rw-r--r--clang/lib/Frontend/PCHWriterDecl.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Frontend/PCHWriterDecl.cpp b/clang/lib/Frontend/PCHWriterDecl.cpp
index ff5c5761592..b2c6fd26181 100644
--- a/clang/lib/Frontend/PCHWriterDecl.cpp
+++ b/clang/lib/Frontend/PCHWriterDecl.cpp
@@ -354,9 +354,6 @@ void PCHDeclWriter::VisitImplicitParamDecl(ImplicitParamDecl *D) {
void PCHDeclWriter::VisitParmVarDecl(ParmVarDecl *D) {
VisitVarDecl(D);
Record.push_back(D->getObjCDeclQualifier()); // FIXME: stable encoding
- // FIXME: emit default argument (C++)
- // FIXME: why isn't the "default argument" just stored as the initializer
- // in VarDecl?
Code = pch::DECL_PARM_VAR;
OpenPOWER on IntegriCloud