Don't use ASTContext in DeclOpenMP.h because it's still incomplete.
llvm-svn: 352919
This commit is contained in:
parent
614dd19869
commit
de9ffab1ca
|
@ -289,14 +289,8 @@ public:
|
|||
|
||||
/// Get reference to previous declare mapper construct in the same
|
||||
/// scope with the same name.
|
||||
OMPDeclareMapperDecl *getPrevDeclInScope() {
|
||||
return cast_or_null<OMPDeclareMapperDecl>(
|
||||
PrevDeclInScope.get(getASTContext().getExternalSource()));
|
||||
}
|
||||
const OMPDeclareMapperDecl *getPrevDeclInScope() const {
|
||||
return cast_or_null<OMPDeclareMapperDecl>(
|
||||
PrevDeclInScope.get(getASTContext().getExternalSource()));
|
||||
}
|
||||
OMPDeclareMapperDecl *getPrevDeclInScope();
|
||||
const OMPDeclareMapperDecl *getPrevDeclInScope() const;
|
||||
|
||||
static bool classof(const Decl *D) { return classofKind(D->getKind()); }
|
||||
static bool classofKind(Kind K) { return K == OMPDeclareMapper; }
|
||||
|
|
|
@ -172,6 +172,16 @@ void OMPDeclareMapperDecl::setClauses(ArrayRef<OMPClause *> CL) {
|
|||
std::uninitialized_copy(CL.begin(), CL.end(), Clauses.data());
|
||||
}
|
||||
|
||||
OMPDeclareMapperDecl *OMPDeclareMapperDecl::getPrevDeclInScope() {
|
||||
return cast_or_null<OMPDeclareMapperDecl>(
|
||||
PrevDeclInScope.get(getASTContext().getExternalSource()));
|
||||
}
|
||||
|
||||
const OMPDeclareMapperDecl *OMPDeclareMapperDecl::getPrevDeclInScope() const {
|
||||
return cast_or_null<OMPDeclareMapperDecl>(
|
||||
PrevDeclInScope.get(getASTContext().getExternalSource()));
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// OMPCapturedExprDecl Implementation.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue