From: Chris Lattner Date: Sun, 14 Mar 2004 02:37:16 +0000 (+0000) Subject: Move prototype to IPO.h instead of Scalar.h X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=1e3cb34753a0cf6b8d99ebf3ada17c87dcebed79;p=oota-llvm.git Move prototype to IPO.h instead of Scalar.h 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 --- diff --git a/lib/Transforms/IPO/LoopExtractor.cpp b/lib/Transforms/IPO/LoopExtractor.cpp index 480f0f7c03d..3aa5686b210 100644 --- a/lib/Transforms/IPO/LoopExtractor.cpp +++ b/lib/Transforms/IPO/LoopExtractor.cpp @@ -14,12 +14,11 @@ // //===----------------------------------------------------------------------===// +#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 using namespace llvm; namespace { @@ -64,6 +63,6 @@ bool LoopExtractor::runOnFunction(Function &F) { /// createLoopExtractorPass /// -FunctionPass* llvm::createLoopExtractorPass() { +Pass* llvm::createLoopExtractorPass() { return new LoopExtractor(); }