diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index 1ae3c81b469..4f0809a69db 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -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. diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index 58dcd428acc..d89650654ef 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -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