[LLVMdev] Question

Misha Brukman brukman at uiuc.edu
Wed Mar 9 12:21:33 PST 2005

On Wed, Mar 09, 2005 at 12:18:33PM -0800, Tanu Sharma wrote:
> This is exactly what i m trying :
> opt -load /home/tsharma/ankur/llvm/Debug/lib/LLVMHello.so -hello <helloprog.bc> /dev/null

Well, you're not saving the output of your pass, it's going to
/dev/null.  Try:

opt -load ... < input.bc > output.bc

And then look at how output differs from input.

Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu

More information about the llvm-dev mailing list