From 8c84571f3e262569ba51d107db7ab31a23de79b3 Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Tue, 28 Sep 2010 20:23:00 +0000 Subject: [PATCH] Move ExternalSemaSource::ReadMethodPool's implementation to Sema.cpp so that the header can get away with forward declarations only for ObjCMethodList and Selector. Fixes . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114978 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Sema/ExternalSemaSource.h | 8 +++----- lib/Sema/Sema.cpp | 6 ++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/include/clang/Sema/ExternalSemaSource.h b/include/clang/Sema/ExternalSemaSource.h index 7be003390b..8244cd92f6 100644 --- a/include/clang/Sema/ExternalSemaSource.h +++ b/include/clang/Sema/ExternalSemaSource.h @@ -14,10 +14,11 @@ #define LLVM_CLANG_SEMA_EXTERNAL_SEMA_SOURCE_H #include "clang/AST/ExternalASTSource.h" -#include "clang/Sema/ObjCMethodList.h" +#include namespace clang { +class ObjCMethodList; class Sema; /// \brief An abstract interface that should be implemented by @@ -44,10 +45,7 @@ public: /// /// \returns a pair of Objective-C methods lists containing the /// instance and factory methods, respectively, with this selector. - virtual std::pair - ReadMethodPool(Selector Sel) { - return std::pair(); - } + virtual std::pair ReadMethodPool(Selector Sel); // isa/cast/dyn_cast support static bool classof(const ExternalASTSource *Source) { diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index e8d2c1e420..a0046a2caa 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -20,6 +20,7 @@ #include "llvm/ADT/APFloat.h" #include "clang/Sema/CXXFieldCollector.h" #include "clang/Sema/ExternalSemaSource.h" +#include "clang/Sema/ObjCMethodList.h" #include "clang/Sema/PrettyDeclStackTrace.h" #include "clang/Sema/Scope.h" #include "clang/Sema/ScopeInfo.h" @@ -553,6 +554,11 @@ BlockScopeInfo *Sema::getCurBlock() { // Pin this vtable to this file. ExternalSemaSource::~ExternalSemaSource() {} +std::pair +ExternalSemaSource::ReadMethodPool(Selector Sel) { + return std::pair(); +} + void PrettyDeclStackTraceEntry::print(llvm::raw_ostream &OS) const { SourceLocation Loc = this->Loc; if (!Loc.isValid() && TheDecl) Loc = TheDecl->getLocation(); -- 2.40.0