diff options
author | Chris Lattner <sabre@nondot.org> | 2004-01-09 06:12:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-01-09 06:12:26 +0000 |
commit | f7703df4968084c18c248c1feea9961c19a32e6a (patch) | |
tree | 5a3e4830177c09d61c4bf51e8d6ef6338d172196 /lib/Transforms/Utils/InlineFunction.cpp | |
parent | 21949d90881e89ab9c7b752f82f51577a1f0c095 (diff) |
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | lib/Transforms/Utils/InlineFunction.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp index a0fc9bf1cf..ef473becaa 100644 --- a/lib/Transforms/Utils/InlineFunction.cpp +++ b/lib/Transforms/Utils/InlineFunction.cpp @@ -23,11 +23,10 @@ #include "llvm/Intrinsics.h" #include "llvm/Support/CallSite.h" #include "llvm/Transforms/Utils/Local.h" +using namespace llvm; -namespace llvm { - -bool InlineFunction(CallInst *CI) { return InlineFunction(CallSite(CI)); } -bool InlineFunction(InvokeInst *II) { return InlineFunction(CallSite(II)); } +bool llvm::InlineFunction(CallInst *CI) { return InlineFunction(CallSite(CI)); } +bool llvm::InlineFunction(InvokeInst *II) {return InlineFunction(CallSite(II));} // InlineFunction - This function inlines the called function into the basic // block of the caller. This returns false if it is not possible to inline this @@ -38,7 +37,7 @@ bool InlineFunction(InvokeInst *II) { return InlineFunction(CallSite(II)); } // exists in the instruction stream. Similiarly this will inline a recursive // function by one level. // -bool InlineFunction(CallSite CS) { +bool llvm::InlineFunction(CallSite CS) { Instruction *TheCall = CS.getInstruction(); assert(TheCall->getParent() && TheCall->getParent()->getParent() && "Instruction not in function!"); @@ -280,5 +279,3 @@ bool InlineFunction(CallSite CS) { SimplifyCFG(AfterCallBB); return true; } - -} // End llvm namespace |