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/PCHReader.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'clang/lib/Frontend/PCHReader.cpp') diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp index 93236209380..949d02a985c 100644 --- a/clang/lib/Frontend/PCHReader.cpp +++ b/clang/lib/Frontend/PCHReader.cpp @@ -1584,8 +1584,16 @@ QualType PCHReader::ReadTypeRecord(uint64_t Offset) { ParamTypes.push_back(GetType(Record[Idx++])); bool isVariadic = Record[Idx++]; unsigned Quals = Record[Idx++]; + bool hasExceptionSpec = Record[Idx++]; + bool hasAnyExceptionSpec = Record[Idx++]; + unsigned NumExceptions = Record[Idx++]; + llvm::SmallVector Exceptions; + for (unsigned I = 0; I != NumExceptions; ++I) + Exceptions.push_back(GetType(Record[Idx++])); return Context->getFunctionType(ResultType, &ParamTypes[0], NumParams, - isVariadic, Quals); + isVariadic, Quals, hasExceptionSpec, + hasAnyExceptionSpec, NumExceptions, + &Exceptions[0]); } case pch::TYPE_TYPEDEF: -- cgit v1.2.3