aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/ChangeAllocations.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms/ChangeAllocations.h')
-rw-r--r--include/llvm/Transforms/ChangeAllocations.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Transforms/ChangeAllocations.h b/include/llvm/Transforms/ChangeAllocations.h
index 8f53051da3..05fb133410 100644
--- a/include/llvm/Transforms/ChangeAllocations.h
+++ b/include/llvm/Transforms/ChangeAllocations.h
@@ -13,7 +13,7 @@
#include "llvm/Pass.h"
class TargetData;
-class LowerAllocations : public Pass {
+class LowerAllocations : public MethodPass {
Method *MallocMeth; // Methods in the module we are processing
Method *FreeMeth; // Initialized by doPassInitializationVirt
@@ -28,12 +28,12 @@ public:
//
// This function is always successful.
//
- bool doPassInitialization(Module *M);
+ bool doInitialization(Module *M);
// doPerMethodWork - This method does the actual work of converting
// instructions over, assuming that the pass has already been initialized.
//
- bool doPerMethodWork(Method *M);
+ bool runOnMethod(Method *M);
};
#endif