From 7e02b7e600ce8b719b34e2df7a7e44310229564d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 30 Jun 2001 04:36:40 +0000 Subject: Optimizations got their own header files Optimizations now live in the 'opt' namespace include/llvm/Opt was renamed include/llvm/Optimizations git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/InlineSimple.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/Transforms/IPO/InlineSimple.cpp') diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index e5bc171..d85b33d 100644 --- a/lib/Transforms/IPO/InlineSimple.cpp +++ b/lib/Transforms/IPO/InlineSimple.cpp @@ -19,17 +19,18 @@ // //===----------------------------------------------------------------------===// +#include "llvm/Optimizations/MethodInlining.h" #include "llvm/Module.h" #include "llvm/Method.h" -#include "llvm/BasicBlock.h" #include "llvm/iTerminators.h" #include "llvm/iOther.h" -#include "llvm/Opt/AllOpts.h" #include #include #include "llvm/Assembly/Writer.h" +using namespace opt; + // RemapInstruction - Convert the instruction operands from referencing the // current values into those specified by ValueMap. // @@ -60,7 +61,7 @@ static inline void RemapInstruction(Instruction *I, // exists in the instruction stream. Similiarly this will inline a recursive // method by one level. // -bool InlineMethod(BasicBlock::iterator CIIt) { +bool opt::InlineMethod(BasicBlock::iterator CIIt) { assert((*CIIt)->getInstType() == Instruction::Call && "InlineMethod only works on CallInst nodes!"); assert((*CIIt)->getParent() && "Instruction not embedded in basic block!"); @@ -218,7 +219,7 @@ bool InlineMethod(BasicBlock::iterator CIIt) { return true; } -bool InlineMethod(CallInst *CI) { +bool opt::InlineMethod(CallInst *CI) { assert(CI->getParent() && "CallInst not embeded in BasicBlock!"); BasicBlock *PBB = CI->getParent(); @@ -260,7 +261,7 @@ static inline bool DoMethodInlining(BasicBlock *BB) { return false; } -bool DoMethodInlining(Method *M) { +bool opt::DoMethodInlining(Method *M) { bool Changed = false; // Loop through now and inline instructions a basic block at a time... -- cgit v1.1