summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTImporter.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-12-14 06:51:39 +0000
committerJohn McCall <rjmccall@apple.com>2010-12-14 06:51:39 +0000
commitaa6d98c1603c81a7e4d9926ea554cd296cfb6506 (patch)
tree66723e5973af0eedb26130f2e985af0474ae973a /clang/lib/AST/ASTImporter.cpp
parentd7beca3782b4e555eb2214f9eaab7fe215558fc1 (diff)
downloadbcm5719-llvm-aa6d98c1603c81a7e4d9926ea554cd296cfb6506.tar.gz
bcm5719-llvm-aa6d98c1603c81a7e4d9926ea554cd296cfb6506.zip
Factor out most of the extra state in a FunctionProtoType into a separate
class to be passed around. The line between argument and return types and everything else is kindof vague, but I think it's justifiable. llvm-svn: 121752
Diffstat (limited to 'clang/lib/AST/ASTImporter.cpp')
-rw-r--r--clang/lib/AST/ASTImporter.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/clang/lib/AST/ASTImporter.cpp b/clang/lib/AST/ASTImporter.cpp
index 8415977349b..cc485c47d9f 100644
--- a/clang/lib/AST/ASTImporter.cpp
+++ b/clang/lib/AST/ASTImporter.cpp
@@ -1473,16 +1473,12 @@ QualType ASTNodeImporter::VisitFunctionProtoType(FunctionProtoType *T) {
return QualType();
ExceptionTypes.push_back(ExceptionType);
}
+
+ FunctionProtoType::ExtProtoInfo EPI = T->getExtProtoInfo();
+ EPI.Exceptions = ExceptionTypes.data();
return Importer.getToContext().getFunctionType(ToResultType, ArgTypes.data(),
- ArgTypes.size(),
- T->isVariadic(),
- T->getTypeQuals(),
- T->hasExceptionSpec(),
- T->hasAnyExceptionSpec(),
- ExceptionTypes.size(),
- ExceptionTypes.data(),
- T->getExtInfo());
+ ArgTypes.size(), EPI);
}
QualType ASTNodeImporter::VisitTypedefType(TypedefType *T) {
OpenPOWER on IntegriCloud