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/PCHReader.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/PCHReader.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHReader.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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<QualType, 2> 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: |