diff options
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/ChangeAllocations.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/llvm/Transforms/ChangeAllocations.h b/include/llvm/Transforms/ChangeAllocations.h index 05fb133410..9adac5dd91 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 MethodPass { +class LowerAllocations : public BasicBlockPass { Method *MallocMeth; // Methods in the module we are processing Method *FreeMeth; // Initialized by doPassInitializationVirt @@ -26,14 +26,12 @@ public: // doPassInitialization - 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 doInitialization(Module *M); - // doPerMethodWork - This method does the actual work of converting + // runOnBasicBlock - This method does the actual work of converting // instructions over, assuming that the pass has already been initialized. // - bool runOnMethod(Method *M); + bool runOnBasicBlock(BasicBlock *BB); }; #endif |