[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/Cloning.h

Alkis Evlogimenos alkis at cs.uiuc.edu
Wed May 19 14:19:03 PDT 2004


Changes in directory llvm/include/llvm/Transforms/Utils:

Cloning.h updated: 1.14 -> 1.15

---
Log message:

Declare function defined in namespace llvm as gcc-3.4 doesn't accept a definition in a namespace of a non-declared function.


---
Diffs of the changes:  (+8 -0)

Index: llvm/include/llvm/Transforms/Utils/Cloning.h
diff -u llvm/include/llvm/Transforms/Utils/Cloning.h:1.14 llvm/include/llvm/Transforms/Utils/Cloning.h:1.15
--- llvm/include/llvm/Transforms/Utils/Cloning.h:1.14	Tue Feb  3 21:59:08 2004
+++ llvm/include/llvm/Transforms/Utils/Cloning.h	Wed May 19 14:17:48 2004
@@ -31,6 +31,7 @@
 class InvokeInst;
 class ReturnInst;
 class CallSite;
+class Trace;
 
 /// CloneModule - Return an exact copy of the specified module
 ///
@@ -94,6 +95,13 @@
                        std::vector<ReturnInst*> &Returns,
                        const char *NameSuffix = "");
 
+
+/// CloneTraceInto - Clone T into NewFunc. Original<->clone mapping is
+/// saved in ValueMap.
+///
+void CloneTraceInto(Function *NewFunc, Trace &T,
+                    std::map<const Value*, Value*> &ValueMap,
+                    const char *NameSuffix);
 
 /// InlineFunction - This function inlines the called function into the basic
 /// block of the caller.  This returns false if it is not possible to inline





More information about the llvm-commits mailing list