dpatel at apple.com
Fri Mar 7 14:29:42 PST 2008
On Mar 7, 2008, at 2:27 PM, Dan Gohman wrote:
> On Mar 7, 2008, at 1:22 PM, Devang Patel wrote:
>> On Mar 7, 2008, at 1:13 PM, Dan Gohman wrote:
>>> The virtual function Pass::runPass is a little deceptive; a pass
>>> isn't a ModulePass can be run on a Module when run from a
>>> PassManager, but calling runPass(Module *) with the same pass
>>> does nothing. Also, runPass doesn't appear to be used anywhere.
>>> Can someone explain what runPass is for?
>> Only BasicBlockPass uses it. I do not see any advantage of keeping
>> this around ? What are you trying to do?
> I'm just reading the code trying to understand what stuff does and
> how it's used :-). If you don't see any advantage in keeping the
> runPass methods, can we remove them?
Yes, we can remove this methods.
More information about the llvm-dev