summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHWriter.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-05-27 22:11:52 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-05-27 22:11:52 +0000
commit5068f77ac7bc4fd898d2abb38d2cd1956c4e2a6f (patch)
tree2d30ff42b1d67fc92fd4addf5de38cbf1d4ae234 /clang/lib/Frontend/PCHWriter.cpp
parent54eb224c3b46e58f603f1447d92d2d9c94b25d48 (diff)
downloadbcm5719-llvm-5068f77ac7bc4fd898d2abb38d2cd1956c4e2a6f.tar.gz
bcm5719-llvm-5068f77ac7bc4fd898d2abb38d2cd1956c4e2a6f.zip
Reintroduce the home for exception specs, and make Sema fill it. However, keep the spec out of the canonical type this time. Net effect is currently nothing, because the spec isn't checked anywhere.
llvm-svn: 72498
Diffstat (limited to 'clang/lib/Frontend/PCHWriter.cpp')
-rw-r--r--clang/lib/Frontend/PCHWriter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp
index 2d3ca17036b..9f9b3b4e09c 100644
--- a/clang/lib/Frontend/PCHWriter.cpp
+++ b/clang/lib/Frontend/PCHWriter.cpp
@@ -162,6 +162,11 @@ void PCHTypeWriter::VisitFunctionProtoType(const FunctionProtoType *T) {
Writer.AddTypeRef(T->getArgType(I), Record);
Record.push_back(T->isVariadic());
Record.push_back(T->getTypeQuals());
+ Record.push_back(T->hasExceptionSpec());
+ Record.push_back(T->hasAnyExceptionSpec());
+ Record.push_back(T->getNumExceptions());
+ for (unsigned I = 0, N = T->getNumExceptions(); I != N; ++I)
+ Writer.AddTypeRef(T->getExceptionType(I), Record);
Code = pch::TYPE_FUNCTION_PROTO;
}
OpenPOWER on IntegriCloud