From aae83b4596445d0850b2407aa4d9ccf6f414ad1d Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Thu, 30 Apr 2009 19:20:55 +0000 Subject: Make a home for exception specs in the AST. Now Sema can hook them up. llvm-svn: 70506 --- clang/lib/Frontend/PCHWriter.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/lib/Frontend/PCHWriter.cpp') diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp index b28d0c8cf9f..2db93c3bb93 100644 --- a/clang/lib/Frontend/PCHWriter.cpp +++ b/clang/lib/Frontend/PCHWriter.cpp @@ -161,6 +161,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; } -- cgit v1.2.3