diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-07 08:11:36 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-07 08:11:36 +0000 |
commit | 9273d480ada44b74af14fef0e0311dc75ef77a7f (patch) | |
tree | 1afb7c4ca445717a9512cb591a44fc1ce5504538 /llvm/lib | |
parent | 5c132bc3af636747222ff6699db546162ce8eef0 (diff) | |
download | bcm5719-llvm-9273d480ada44b74af14fef0e0311dc75ef77a7f.tar.gz bcm5719-llvm-9273d480ada44b74af14fef0e0311dc75ef77a7f.zip |
For PR387:\
Add doInitialization method to avoid overloaded virtuals
llvm-svn: 18602
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LowerAllocations.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp index f3c1a79052c..3bbec3dfd96 100644 --- a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp +++ b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp @@ -37,6 +37,9 @@ namespace { /// a module contains a declaration for a malloc and a free function. /// bool doInitialization(Module &M); + + virtual bool doInitialization(Function&f) + { return BasicBlockPass::doInitialization(f); } /// runOnBasicBlock - This method does the actual work of converting /// instructions over, assuming that the pass has already been initialized. |