[llvm-commits] [llvm] r164215 - /llvm/trunk/include/llvm/Transforms/Utils/Cloning.h

Benjamin Kramer benny.kra at googlemail.com
Wed Sep 19 06:03:02 PDT 2012


Author: d0k
Date: Wed Sep 19 08:03:01 2012
New Revision: 164215

URL: http://llvm.org/viewvc/llvm-project?rev=164215&view=rev
Log:
Remove unused and broken CloneFunction wrapper.

It converted the CodeInfo argument to bool implicitly.

Modified:
    llvm/trunk/include/llvm/Transforms/Utils/Cloning.h

Modified: llvm/trunk/include/llvm/Transforms/Utils/Cloning.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/Cloning.h?rev=164215&r1=164214&r2=164215&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/Cloning.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/Cloning.h Wed Sep 19 08:03:01 2012
@@ -116,13 +116,6 @@
                         bool ModuleLevelChanges,
                         ClonedCodeInfo *CodeInfo = 0);
 
-/// CloneFunction - Version of the function that doesn't need the VMap.
-///
-inline Function *CloneFunction(const Function *F, ClonedCodeInfo *CodeInfo = 0){
-  ValueToValueMapTy VMap;
-  return CloneFunction(F, VMap, CodeInfo);
-}
-
 /// Clone OldFunc into NewFunc, transforming the old arguments into references
 /// to VMap values.  Note that if NewFunc already has basic blocks, the ones
 /// cloned into it will be added to the end of the function.  This function





More information about the llvm-commits mailing list