aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Transforms/Scalar.h7
-rw-r--r--tools/llc/llc.cpp2
2 files changed, 3 insertions, 6 deletions
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h
index 188e3e298f..79f10298a5 100644
--- a/include/llvm/Transforms/Scalar.h
+++ b/include/llvm/Transforms/Scalar.h
@@ -9,7 +9,6 @@
#define LLVM_TRANSFORMS_SCALAR_H
class Pass;
-class TargetData;
class GetElementPtrInst;
class PassInfo;
@@ -191,11 +190,9 @@ extern const PassInfo *BreakCriticalEdgesID;
//===----------------------------------------------------------------------===//
// 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();
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 5aa88afd0e..f524e32d8b 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -220,7 +220,7 @@ main(int argc, char **argv)
// 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)