summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTImporter.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-01-27 02:37:01 +0000
committerJohn McCall <rjmccall@apple.com>2011-01-27 02:37:01 +0000
commit08432c8e003f6fc2274f7d9bd20dc901348363ed (patch)
tree6bdc892c1930fa490d9b433b2952728f9d5b6f10 /clang/lib/AST/ASTImporter.cpp
parent93a313869f343f3b452f38dbe8a631627b36a09d (diff)
downloadbcm5719-llvm-08432c8e003f6fc2274f7d9bd20dc901348363ed.tar.gz
bcm5719-llvm-08432c8e003f6fc2274f7d9bd20dc901348363ed.zip
Import three interesting bits that apply only to C++ methods.
llvm-svn: 124349
Diffstat (limited to 'clang/lib/AST/ASTImporter.cpp')
-rw-r--r--clang/lib/AST/ASTImporter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTImporter.cpp b/clang/lib/AST/ASTImporter.cpp
index 02be81b8ee1..a1e0070422e 100644
--- a/clang/lib/AST/ASTImporter.cpp
+++ b/clang/lib/AST/ASTImporter.cpp
@@ -2396,6 +2396,9 @@ Decl *ASTNodeImporter::VisitFunctionDecl(FunctionDecl *D) {
}
ToFunction->setAccess(D->getAccess());
ToFunction->setLexicalDeclContext(LexicalDC);
+ ToFunction->setVirtualAsWritten(D->isVirtualAsWritten());
+ ToFunction->setTrivial(D->isTrivial());
+ ToFunction->setPure(D->isPure());
Importer.Imported(D, ToFunction);
// Set the parameters.
OpenPOWER on IntegriCloud