[LLVMdev] Pass::runPass?

Devang Patel dpatel at apple.com
Fri Mar 7 13:22:26 PST 2008

On Mar 7, 2008, at 1:13 PM, Dan Gohman wrote:

> The virtual function Pass::runPass is a little deceptive; a pass that
> 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?

More information about the llvm-dev mailing list