summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-17 18:05:35 +0000
committerChris Lattner <sabre@nondot.org>2006-05-17 18:05:35 +0000
commit782e60150eb9370a60fa51ed49bd23036588756a (patch)
tree48d4e79a3bc150efc8b9551c29b152fc1cdee1d6 /include
parentc5d7d7c715f7b7a4eeea1ceaafefc3d1d6df2add (diff)
downloadllvm-782e60150eb9370a60fa51ed49bd23036588756a.tar.gz
llvm-782e60150eb9370a60fa51ed49bd23036588756a.tar.bz2
llvm-782e60150eb9370a60fa51ed49bd23036588756a.tar.xz
Add a CloneModule call that exposes the mapping of values from the old module
to the new module. Patch provided by Nick Lewycky! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/Utils/Cloning.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Cloning.h b/include/llvm/Transforms/Utils/Cloning.h
index f721ea900d..4560c72862 100644
--- a/include/llvm/Transforms/Utils/Cloning.h
+++ b/include/llvm/Transforms/Utils/Cloning.h
@@ -37,6 +37,7 @@ class CallGraph;
/// CloneModule - Return an exact copy of the specified module
///
Module *CloneModule(const Module *M);
+Module *CloneModule(const Module *M, std::map<const Value*, Value*> &ValueMap);
/// ClonedCodeInfo - This struct can be used to capture information about code
/// being cloned, while it is being cloned.