diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-17 18:05:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-17 18:05:35 +0000 |
commit | 782e60150eb9370a60fa51ed49bd23036588756a (patch) | |
tree | 48d4e79a3bc150efc8b9551c29b152fc1cdee1d6 /include | |
parent | c5d7d7c715f7b7a4eeea1ceaafefc3d1d6df2add (diff) | |
download | external_llvm-782e60150eb9370a60fa51ed49bd23036588756a.zip external_llvm-782e60150eb9370a60fa51ed49bd23036588756a.tar.gz external_llvm-782e60150eb9370a60fa51ed49bd23036588756a.tar.bz2 |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Cloning.h b/include/llvm/Transforms/Utils/Cloning.h index f721ea9..4560c72 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. |