summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-07 08:11:36 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-07 08:11:36 +0000
commit9273d480ada44b74af14fef0e0311dc75ef77a7f (patch)
tree1afb7c4ca445717a9512cb591a44fc1ce5504538 /llvm/lib
parent5c132bc3af636747222ff6699db546162ce8eef0 (diff)
downloadbcm5719-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.cpp3
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.
OpenPOWER on IntegriCloud