summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-24 06:58:32 +0000
committerChris Lattner <sabre@nondot.org>2003-08-24 06:58:32 +0000
commit88e7d5931636d13be91263543919b7407a5786af (patch)
tree323c41d21018d21db06d81ba9ab7be4e78161b4f /llvm
parentca3e56926995bfe5fc100c3afc7c000a1436590b (diff)
downloadbcm5719-llvm-88e7d5931636d13be91263543919b7407a5786af.tar.gz
bcm5719-llvm-88e7d5931636d13be91263543919b7407a5786af.zip
Add versions of InlineFunction which work on Invoke instructions and general call sites
llvm-svn: 8105
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Transforms/Utils/Cloning.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/include/llvm/Transforms/Utils/Cloning.h b/llvm/include/llvm/Transforms/Utils/Cloning.h
index 8a6b69997c0..99aaccde8b2 100644
--- a/llvm/include/llvm/Transforms/Utils/Cloning.h
+++ b/llvm/include/llvm/Transforms/Utils/Cloning.h
@@ -18,7 +18,9 @@ class Function;
class BasicBlock;
class Value;
class CallInst;
+class InvokeInst;
class ReturnInst;
+class CallSite;
/// CloneModule - Return an exact copy of the specified module
///
@@ -90,7 +92,8 @@ void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
/// function by one level.
///
bool InlineFunction(CallInst *C);
-
+bool InlineFunction(InvokeInst *II);
+bool InlineFunction(CallSite CS);
/// CloneTrace - Returns a copy of the specified trace.
/// It takes a vector of basic blocks clones the basic blocks, removes internal
OpenPOWER on IntegriCloud