diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-23 19:37:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-23 19:37:38 +0000 |
commit | 378fb1df55589ed771670b4c97bd799361183d54 (patch) | |
tree | 72085a859dec2b7ae65c89be375a79afc3e97db9 | |
parent | edf1f23e539e25e96d96995ca863b1bf1577df06 (diff) |
Merge the contents of ChangeAllocations.h into Scalar.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3028 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Transforms/ChangeAllocations.h | 19 | ||||
-rw-r--r-- | include/llvm/Transforms/Scalar.h | 11 |
2 files changed, 11 insertions, 19 deletions
diff --git a/include/llvm/Transforms/ChangeAllocations.h b/include/llvm/Transforms/ChangeAllocations.h deleted file mode 100644 index 1b837419bd..0000000000 --- a/include/llvm/Transforms/ChangeAllocations.h +++ /dev/null @@ -1,19 +0,0 @@ -//===- llvm/Transforms/ChangeAllocations.h -----------------------*- C++ -*--=// -// -// This file defines two passes that convert malloc and free instructions to -// calls to and from %malloc & %free function calls. The LowerAllocations -// transformation is a target dependant tranformation because it depends on the -// size of data types and alignment constraints. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_TRANSFORMS_CHANGEALLOCATIONS_H -#define LLVM_TRANSFORMS_CHANGEALLOCATIONS_H - -class Pass; -class TargetData; - -Pass *createLowerAllocationsPass(const TargetData &TD); -Pass *createRaiseAllocationsPass(); - -#endif diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index 5161ac708a..b1a4340c1f 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -9,6 +9,7 @@ #define LLVM_TRANSFORMS_SCALAR_H class Pass; +class TargetData; //===----------------------------------------------------------------------===// // @@ -160,6 +161,16 @@ Pass *createCFGSimplificationPass(); //===----------------------------------------------------------------------===// +// These two passes convert malloc and free instructions to and from %malloc & +// %free function calls. The LowerAllocations transformation is a target +// dependant tranformation because it depends on the size of data types and +// alignment constraints. +// +Pass *createLowerAllocationsPass(const TargetData &TD); +Pass *createRaiseAllocationsPass(); + + +//===----------------------------------------------------------------------===// // // These functions removes symbols from functions and modules. // |