diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-04-30 19:20:55 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-04-30 19:20:55 +0000 |
commit | aae83b4596445d0850b2407aa4d9ccf6f414ad1d (patch) | |
tree | 89911f5f52202f8f7a870b0fe7d7da2c83f468ba /clang/lib/Frontend/PCHWriter.cpp | |
parent | 2acb5adac95e5e5d8dbbd88f6312ad8bd4a46367 (diff) | |
download | bcm5719-llvm-aae83b4596445d0850b2407aa4d9ccf6f414ad1d.tar.gz bcm5719-llvm-aae83b4596445d0850b2407aa4d9ccf6f414ad1d.zip |
Make a home for exception specs in the AST. Now Sema can hook them up.
llvm-svn: 70506
Diffstat (limited to 'clang/lib/Frontend/PCHWriter.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHWriter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |