[LLVMdev] Minor change to Pass API: use ModulePass now
Chris Lattner
sabre at nondot.org
Sun Sep 19 22:10:21 PDT 2004
Hi all,
I just checked in a minor change to the PassManager API that will affect
you if you have Pass classes that are not in LLVM CVS. Basically if you
have a class that derives from the Pass class, change it to derive from
'ModulePass'. Also, instead of implementing 'Pass::run', implement
'ModulePass::runOnModule'.
This change does not affect FunctionPass's or any other pass types, just
module-level Pass's.
If you run into any problems, or have any questions, please let me know!
-Chris
--
http://llvm.org/
http://nondot.org/sabre/
More information about the llvm-dev
mailing list