diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-07-04 20:19:54 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-07-04 20:19:54 +0000 |
commit | 4ab984e74b55a4dc7007ecbbf66cc87152c983a7 (patch) | |
tree | dfba655d05ab82095d15ec4781526a1d188030bb /clang/lib/AST/DeclFriend.cpp | |
parent | 2d827d628e3b8c8c5672dd861611e0bc5343cb1e (diff) | |
download | bcm5719-llvm-4ab984e74b55a4dc7007ecbbf66cc87152c983a7.tar.gz bcm5719-llvm-4ab984e74b55a4dc7007ecbbf66cc87152c983a7.zip |
Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h.
llvm-svn: 159723
Diffstat (limited to 'clang/lib/AST/DeclFriend.cpp')
-rw-r--r-- | clang/lib/AST/DeclFriend.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclFriend.cpp b/clang/lib/AST/DeclFriend.cpp index 6e3bd8d4225..553d170fc3d 100644 --- a/clang/lib/AST/DeclFriend.cpp +++ b/clang/lib/AST/DeclFriend.cpp @@ -12,12 +12,18 @@ // //===----------------------------------------------------------------------===// +#include "clang/AST/ASTContext.h" #include "clang/AST/DeclFriend.h" #include "clang/AST/DeclTemplate.h" using namespace clang; void FriendDecl::anchor() { } +FriendDecl *FriendDecl::getNextFriendSlowCase() { + return cast_or_null<FriendDecl>( + NextFriend.get(getASTContext().getExternalSource())); +} + FriendDecl *FriendDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, FriendUnion Friend, |