From 2757af2d47ea633d4cdb7bd1b12850e975a49bdf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 1 Sep 2003 03:14:00 +0000 Subject: [PATCH] Change the RaiseAllocations pass from being a BasicBlockPass to being a Pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8279 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/IPO.h | 7 +++++++ include/llvm/Transforms/Scalar.h | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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 -- 2.34.1