summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-26 05:01:58 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-26 05:01:58 +0000
commitdb9d66424425ad4d00c3bb499ad913beaeeda0f1 (patch)
tree391cf6eb0d7fe9a1d8a315889212c056581ccc54 /clang/lib/Serialization/ASTWriter.cpp
parent5d068499a7b43a5c9a4375f7a4cdbfc238e0b683 (diff)
downloadbcm5719-llvm-db9d66424425ad4d00c3bb499ad913beaeeda0f1.tar.gz
bcm5719-llvm-db9d66424425ad4d00c3bb499ad913beaeeda0f1.zip
Rvalue references for *this:
- Add ref-qualifiers to the type system; they are part of the canonical type. Print & profile ref-qualifiers - Translate the ref-qualifier from the Declarator chunk for functions to the function type. - Diagnose mis-uses of ref-qualifiers w.r.t. static member functions, free functions, constructors, destructors, etc. - Add serialization and deserialization of ref-qualifiers. llvm-svn: 124281
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 1e296e85143..e90640711f9 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -176,6 +176,7 @@ void ASTTypeWriter::VisitFunctionProtoType(const FunctionProtoType *T) {
Writer.AddTypeRef(T->getArgType(I), Record);
Record.push_back(T->isVariadic());
Record.push_back(T->getTypeQuals());
+ Record.push_back(static_cast<unsigned>(T->getRefQualifier()));
Record.push_back(T->hasExceptionSpec());
Record.push_back(T->hasAnyExceptionSpec());
Record.push_back(T->getNumExceptions());
OpenPOWER on IntegriCloud