From: Dan Gohman Date: Sun, 1 Nov 2009 15:20:19 +0000 (+0000) Subject: Remove the #include of Pass.h from PassManager.h. This breaks a significant X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b2fae7560dcac617d40a83c73c976d4045bfb97f;p=oota-llvm.git Remove the #include of Pass.h from PassManager.h. This breaks a significant #include dependency, as frontends commonly pull in PassManager.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85714 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/PassManager.h b/include/llvm/PassManager.h index a6703fd5867..c767f251335 100644 --- a/include/llvm/PassManager.h +++ b/include/llvm/PassManager.h @@ -17,10 +17,9 @@ #ifndef LLVM_PASSMANAGER_H #define LLVM_PASSMANAGER_H -#include "llvm/Pass.h" - namespace llvm { +class Function; class Pass; class ModulePass; class Module; diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h index 5a8f55570a8..120ac84bd78 100644 --- a/include/llvm/PassManagers.h +++ b/include/llvm/PassManagers.h @@ -14,6 +14,7 @@ #ifndef LLVM_PASSMANAGERS_H #define LLVM_PASSMANAGERS_H +#include "llvm/Pass.h" #include "llvm/PassManager.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/SmallPtrSet.h" diff --git a/lib/Transforms/IPO/IPO.cpp b/lib/Transforms/IPO/IPO.cpp index 83e8624fe09..c3f0d7b5a14 100644 --- a/lib/Transforms/IPO/IPO.cpp +++ b/lib/Transforms/IPO/IPO.cpp @@ -14,6 +14,7 @@ #include "llvm-c/Transforms/IPO.h" #include "llvm/PassManager.h" +#include "llvm/Pass.h" #include "llvm/Transforms/IPO.h" using namespace llvm; diff --git a/tools/llvm-prof/llvm-prof.cpp b/tools/llvm-prof/llvm-prof.cpp index 88adeb43e6d..9b728f7e926 100644 --- a/tools/llvm-prof/llvm-prof.cpp +++ b/tools/llvm-prof/llvm-prof.cpp @@ -17,6 +17,7 @@ #include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/PassManager.h" +#include "llvm/Pass.h" #include "llvm/Assembly/AsmAnnotationWriter.h" #include "llvm/Analysis/ProfileInfo.h" #include "llvm/Analysis/ProfileInfoLoader.h"