[LLVMdev] Problems creating a pass

Juan Carlos Martinez Santos juanc.martinez.santos at gmail.com
Fri Jun 19 11:15:58 PDT 2009


Following the tutorial for writing a pass, I found the next problem.

:~/llvm/test$ opt -load ../llvm/Debug/lib/mypass.so -mypass < hello.bc >
opt: Pass.cpp:151: void<unnamed>::PassRegistrar::RegisterPass(const
llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple times!"'

I just <copy> and then <paste> the code that appears in the web page, and
follow the instructions to run the pass. There is something missed,
something that is not in the web page [

Thanks in advance.
Juan Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090619/d1fd7cdc/attachment.html>

More information about the llvm-dev mailing list