aboutsummaryrefslogtreecommitdiffstats
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
commit9d3a1b2d972baf72b7da371a1ae72126bc5c6c04 (patch)
tree72d5dbd200d15dd2790ec523c06a924a4715b8df
parent7f736c9351619133e909998d42913008bbe63484 (diff)
downloadexternal_llvm-9d3a1b2d972baf72b7da371a1ae72126bc5c6c04.zip
external_llvm-9d3a1b2d972baf72b7da371a1ae72126bc5c6c04.tar.gz
external_llvm-9d3a1b2d972baf72b7da371a1ae72126bc5c6c04.tar.bz2
Add versions of InlineFunction which work on Invoke instructions and general call sites
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8105 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Transforms/Utils/Cloning.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Utils/Cloning.h b/include/llvm/Transforms/Utils/Cloning.h
index 8a6b699..99aaccd 100644
--- a/include/llvm/Transforms/Utils/Cloning.h
+++ b/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