Remove unused and broken CloneFunction wrapper.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 19 Sep 2012 13:03:01 +0000 (13:03 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 19 Sep 2012 13:03:01 +0000 (13:03 +0000)
It converted the CodeInfo argument to bool implicitly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164215 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Utils/Cloning.h

index b7b5d29b320f4242a25653ace89f3981df23f944..92e15ce9326ff27d4d9bffc020e5c0b42398fb07 100644 (file)
@@ -116,13 +116,6 @@ Function *CloneFunction(const Function *F,
                         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