Change the RaiseAllocations pass from being a BasicBlockPass to being a Pass
authorChris Lattner <sabre@nondot.org>
Mon, 1 Sep 2003 03:14:00 +0000 (03:14 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Sep 2003 03:14:00 +0000 (03:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8279 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/IPO.h
include/llvm/Transforms/Scalar.h

index 1ae3c81b469f9faa3f2d94dcb53a76b3724e2db1..4f0809a69dbcd52b7f3e43ead00eecc04771834b 100644 (file)
@@ -21,6 +21,13 @@ class Function;
 Pass *createConstantMergePass();
 
 
+//===----------------------------------------------------------------------===//
+// createRaiseAllocationsPass - Return a new pass that transforms malloc and
+// free function calls into malloc and free instructions.
+//
+Pass *createRaiseAllocationsPass();
+
+
 //===----------------------------------------------------------------------===//
 // createDeadTypeEliminationPass - Return a new pass that eliminates symbol
 // table entries for types that are never used.
index 58dcd428acc0798b271b1dff1507b73beb0991bd..d89650654efd50183b3dc31526739dd82049ad61 100644 (file)
@@ -235,11 +235,10 @@ extern const PassInfo *LoopPreheadersID;
 
 
 //===----------------------------------------------------------------------===//
-// These two passes convert malloc and free instructions to and from %malloc &
-// %free function calls.
+// This pass convert malloc and free instructions to %malloc & %free function
+// calls.
 //
 FunctionPass *createLowerAllocationsPass();
-Pass *createRaiseAllocationsPass();
 
 //===----------------------------------------------------------------------===//
 // This pass converts SwitchInst instructions into a sequence of chained binary