[LLVMdev] newbie with pass registering Problem

Nicole Irwanto kesetrum at web.de
Wed Apr 23 01:51:39 PDT 2008


Hi Devang,

> Did you use static ID ? For example ...
> 
>    class VISIBILITY_HIDDEN GVN : public FunctionPass {
>      bool runOnFunction(Function &F);
>    public:
>      static char ID; // Pass identification, replacement for typeid
>      GVN() : FunctionPass((intptr_t)&ID) { }
> ...
> 
Yes, I did. And actually everything was doing fine until I added galib ( Genetic Algorithm library from http://lancet.mit.edu/ga/) to my sourcecode. :-(


-Nicole- 

_______________________________________________________________________
Jetzt neu! Sch├╝tzen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220





More information about the llvm-dev mailing list