Move prototype to IPO.h instead of Scalar.h
authorChris Lattner <sabre@nondot.org>
Sun, 14 Mar 2004 02:37:16 +0000 (02:37 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 14 Mar 2004 02:37:16 +0000 (02:37 +0000)
Make sure that the file interface header (IPO.h) is included first
remove dead #incldue

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12375 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/LoopExtractor.cpp

index 480f0f7c03d79bf818c4aebd0d377c5ab57880a1..3aa5686b21000408ef21354cea481878f5a171ed 100644 (file)
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/Transforms/IPO.h"
 #include "llvm/Module.h"
 #include "llvm/Pass.h"
 #include "llvm/Analysis/LoopInfo.h"
-#include "llvm/Transforms/Scalar.h"
 #include "llvm/Transforms/Utils/FunctionUtils.h"
-#include <vector>
 using namespace llvm;
 
 namespace {
@@ -64,6 +63,6 @@ bool LoopExtractor::runOnFunction(Function &F) {
 
 /// createLoopExtractorPass 
 ///
-FunctionPass* llvm::createLoopExtractorPass() {
+Pass* llvm::createLoopExtractorPass() {
   return new LoopExtractor();
 }