On 01/01/2013 12:02 PM, Akash Gulhane wrote:> I'm working though http://llvm.org/docs/WritingAnLLVMPass.html, trying
> to write a very simple pass. I have followed all the steps mentioned
> in this document.But as mentioned I'm not getting any file named
> Hello.so in Debug+Asserts/lib folder(There is a file named
> LLVMHello.so only). I have also tried to modify Hello.cpp in
> lib/Transforms/Hello but these changes doesn't reflect anywhere. So
> how should i write my own pass and also tell me where to put that file??
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Yes, the LLVMHello.so is the file you want.
You can follow the document to run the opt and load the LLVMHello.so,
then you can run the hello pass.
If you want an own pass, you can follow the doc:
http://llvm.org/docs/CMake.html#developing-llvm-pass-out-of-source
--
Ning-ning Shi(Shining)
Changchun,China
Home page:shiningning.tk
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20130101/ae401d0f/attachment.html>