#define LLVM_TRANSFORMS_SCALAR_H
class Pass;
-class TargetData;
class GetElementPtrInst;
class PassInfo;
//===----------------------------------------------------------------------===//
// 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.
+// %free function calls.
//
-Pass *createLowerAllocationsPass(const TargetData &TD);
+Pass *createLowerAllocationsPass();
Pass *createRaiseAllocationsPass();
// Replace malloc and free instructions with library calls.
// Do this after tracing until lli implements these lib calls.
// For now, it will emulate malloc and free internally.
- Passes.add(createLowerAllocationsPass(Target.DataLayout));
+ Passes.add(createLowerAllocationsPass());
// If LLVM dumping after transformations is requested, add it to the pipeline
if (DumpAsm)