[LLVMdev] Hello Pass Problem

Nabila ABDESSAIED nabila.abdessaied at gmail.com
Mon May 2 13:08:02 PDT 2011


Hi,

2011/5/2 Manish Gupta <mgupta.iitr at gmail.com>

> Hi all
> I am trying hello pass in llvm. I have compiled and could generate
> LLVMHello.so but while giving the pass using opt i am getting below
> mentioned error.
>
> Command used:  *opt-2.8 -load
> ../../cse231_project/llvm/llvm-2.9/Debug/lib/LLVMHello.so -hello < hello.bc
> *
>

try instead debug  realise
also you should invoke an option for this pass
try -hello or -hello2 after loading your pass



>
> Error opening '../../cse231_project/llvm/llvm-2.9/Debug/lib/LLVMHello.so':
> ../../cse231_project/llvm/llvm-2.9/Debug/lib/LLVMHello.so: undefined symbol:
> _ZN4llvm12PassRegistry12registerPassERKNS_8PassInfoEb
>   -load request ignored.
> opt-2.8: Unknown command line argument '-hello'.  Try: 'opt-2.8 -help'
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110502/4194f033/attachment.html>


More information about the llvm-dev mailing list