summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LowerAllocations.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-21 07:31:50 +0000
committerChris Lattner <sabre@nondot.org>2002-01-21 07:31:50 +0000
commit0686e435d15e5deb21f090f82b654af4d4fe8d22 (patch)
tree71828bc8e7232e19c5211b18207ba35ec4d2a6e0 /llvm/lib/Transforms/Scalar/LowerAllocations.cpp
parente8d81d08192caa4787cd1a0606c6ac93777cc6fd (diff)
downloadbcm5719-llvm-0686e435d15e5deb21f090f82b654af4d4fe8d22.tar.gz
bcm5719-llvm-0686e435d15e5deb21f090f82b654af4d4fe8d22.zip
Implement a more powerful, simpler, pass system. This pass system can figure
out how to run a collection of passes optimially given their behaviors and charactaristics. Convert code to use it. llvm-svn: 1507
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LowerAllocations.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LowerAllocations.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp
index ca1085e3edc..4f3f182cf32 100644
--- a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp
+++ b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp
@@ -17,12 +17,12 @@
using std::vector;
-// doPassInitialization - For the lower allocations pass, this ensures that a
+// doInitialization - For the lower allocations pass, this ensures that a
// module contains a declaration for a malloc and a free function.
//
// This function is always successful.
//
-bool LowerAllocations::doPassInitialization(Module *M) {
+bool LowerAllocations::doInitialization(Module *M) {
bool Changed = false;
const MethodType *MallocType =
MethodType::get(PointerType::get(Type::SByteTy),
@@ -55,10 +55,10 @@ bool LowerAllocations::doPassInitialization(Module *M) {
return Changed; // Always successful
}
-// doPerMethodWork - This method does the actual work of converting
+// runOnMethod - This method does the actual work of converting
// instructions over, assuming that the pass has already been initialized.
//
-bool LowerAllocations::doPerMethodWork(Method *M) {
+bool LowerAllocations::runOnMethod(Method *M) {
bool Changed = false;
assert(MallocMeth && FreeMeth && M && "Pass not initialized!");
OpenPOWER on IntegriCloud