diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2016-02-11 05:35:55 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-02-11 05:35:55 +0000 |
commit | 4244be25bd7c438ac755813ff33e6e80ca6b6f34 (patch) | |
tree | 070f65691c352cc73445c89a3be0f36b69a0d938 /clang/lib/Serialization/ASTReaderDecl.cpp | |
parent | fe26def35c61d4773b5378a1e797033538f96bf8 (diff) | |
download | bcm5719-llvm-4244be25bd7c438ac755813ff33e6e80ca6b6f34.tar.gz bcm5719-llvm-4244be25bd7c438ac755813ff33e6e80ca6b6f34.zip |
[OPENMP] Rename OMPCapturedFieldDecl to OMPCapturedExprDecl, NFC.
OMPCapturedExprDecl allows caopturing not only of fielddecls, but also
other expressions. It also allows to simplify codegen for several
clauses.
llvm-svn: 260492
Diffstat (limited to 'clang/lib/Serialization/ASTReaderDecl.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTReaderDecl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Serialization/ASTReaderDecl.cpp b/clang/lib/Serialization/ASTReaderDecl.cpp index 074de1a71ac..7aa6d5236c6 100644 --- a/clang/lib/Serialization/ASTReaderDecl.cpp +++ b/clang/lib/Serialization/ASTReaderDecl.cpp @@ -350,7 +350,7 @@ namespace clang { void VisitObjCPropertyDecl(ObjCPropertyDecl *D); void VisitObjCPropertyImplDecl(ObjCPropertyImplDecl *D); void VisitOMPThreadPrivateDecl(OMPThreadPrivateDecl *D); - void VisitOMPCapturedFieldDecl(OMPCapturedFieldDecl *D); + void VisitOMPCapturedExprDecl(OMPCapturedExprDecl *D); /// We've merged the definition \p MergedDef into the existing definition /// \p Def. Ensure that \p Def is made visible whenever \p MergedDef is made @@ -2361,7 +2361,7 @@ void ASTDeclReader::VisitOMPThreadPrivateDecl(OMPThreadPrivateDecl *D) { D->setVars(Vars); } -void ASTDeclReader::VisitOMPCapturedFieldDecl(OMPCapturedFieldDecl *D) { +void ASTDeclReader::VisitOMPCapturedExprDecl(OMPCapturedExprDecl *D) { VisitVarDecl(D); } @@ -3328,8 +3328,8 @@ Decl *ASTReader::ReadDeclRecord(DeclID ID) { case DECL_OMP_THREADPRIVATE: D = OMPThreadPrivateDecl::CreateDeserialized(Context, ID, Record[Idx++]); break; - case DECL_OMP_CAPTUREDFIELD: - D = OMPCapturedFieldDecl::CreateDeserialized(Context, ID); + case DECL_OMP_CAPTUREDEXPR: + D = OMPCapturedExprDecl::CreateDeserialized(Context, ID); break; case DECL_EMPTY: D = EmptyDecl::CreateDeserialized(Context, ID); |