aboutsummaryrefslogtreecommitdiff
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
commitf2eca2cf302c50b79891f24b3861d64ea9263831 (patch)
treec08b3b71cde0e0c1fba5fcfebe2c1425486e659f
parent40900ee8f3072d05456134b57c0fad85a6bb21a6 (diff)
Import three interesting bits that apply only to C++ methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124349 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AST/ASTImporter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AST/ASTImporter.cpp b/lib/AST/ASTImporter.cpp
index 02be81b8ee..a1e0070422 100644
--- a/lib/AST/ASTImporter.cpp
+++ b/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.