Remove the #include of Pass.h from PassManager.h. This breaks a significant
authorDan Gohman <gohman@apple.com>
Sun, 1 Nov 2009 15:20:19 +0000 (15:20 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 1 Nov 2009 15:20:19 +0000 (15:20 +0000)
#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

include/llvm/PassManager.h
include/llvm/PassManagers.h
lib/Transforms/IPO/IPO.cpp
tools/llvm-prof/llvm-prof.cpp

index a6703fd5867a88457d4a91b8dc67e22ec6126903..c767f2513353d589fe3385c2eb6387fb85d3e71a 100644 (file)
 #ifndef LLVM_PASSMANAGER_H
 #define LLVM_PASSMANAGER_H
 
-#include "llvm/Pass.h"
-
 namespace llvm {
 
+class Function;
 class Pass;
 class ModulePass;
 class Module;
index 5a8f55570a822034e37d0b7d1440b0802c4b1d42..120ac84bd78cf319d36b99597209b8fbc5138b83 100644 (file)
@@ -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"
index 83e8624fe09df2ea624423195160873f928453f6..c3f0d7b5a140f9ca1d1d357e3ed3ea6f31d2dcfe 100644 (file)
@@ -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;
index 88adeb43e6de35390d500cef99c5e8d58786a563..9b728f7e9264cb9e0ab9423b037347228df23946 100644 (file)
@@ -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"