[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/Cloning.h
Chris Lattner
lattner at cs.uiuc.edu
Wed May 17 11:05:47 PDT 2006
Changes in directory llvm/include/llvm/Transforms/Utils:
Cloning.h updated: 1.18 -> 1.19
---
Log message:
Add a CloneModule call that exposes the mapping of values from the old module
to the new module. Patch provided by Nick Lewycky!
---
Diffs of the changes: (+1 -0)
Cloning.h | 1 +
1 files changed, 1 insertion(+)
Index: llvm/include/llvm/Transforms/Utils/Cloning.h
diff -u llvm/include/llvm/Transforms/Utils/Cloning.h:1.18 llvm/include/llvm/Transforms/Utils/Cloning.h:1.19
--- llvm/include/llvm/Transforms/Utils/Cloning.h:1.18 Sat Jan 14 14:05:06 2006
+++ llvm/include/llvm/Transforms/Utils/Cloning.h Wed May 17 13:05:35 2006
@@ -37,6 +37,7 @@
/// 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.
More information about the llvm-commits
mailing list