summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-01 18:44:50 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-01 18:44:50 +0000
commit7fb25418ed726c594ee800378538a96c69e84d4b (patch)
treeebd4b5fca812482aa6686384f20e5d279d6bc695 /clang/lib/Serialization/ASTWriter.cpp
parentf14331f5c32c10ddca43ab4d0b3faff2fdfa1367 (diff)
downloadbcm5719-llvm-7fb25418ed726c594ee800378538a96c69e84d4b.tar.gz
bcm5719-llvm-7fb25418ed726c594ee800378538a96c69e84d4b.zip
Implement the C++0x "trailing return type" feature, e.g.,
auto f(int) -> int from Daniel Wallin! (With a few minor bug fixes from me). llvm-svn: 115322
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 f5f96ecd24e..ef8c52f4be1 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -412,6 +412,7 @@ void TypeLocWriter::VisitExtVectorTypeLoc(ExtVectorTypeLoc TL) {
void TypeLocWriter::VisitFunctionTypeLoc(FunctionTypeLoc TL) {
Writer.AddSourceLocation(TL.getLParenLoc(), Record);
Writer.AddSourceLocation(TL.getRParenLoc(), Record);
+ Record.push_back(TL.getTrailingReturn());
for (unsigned i = 0, e = TL.getNumArgs(); i != e; ++i)
Writer.AddDeclRef(TL.getArg(i), Record);
}
OpenPOWER on IntegriCloud