<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div>Hi,</div><div><br></div>I want to write a piece of code to instrument c++ programs. I have finished writing the pass, but I do not know how to get the resultant bitcode<div><br></div><div>I ran OPT with the following arguments:</div><div><br></div><div>opt -basiccg -basicaa -load /home/andy/llvm-3.0.src/Release/lib/InstTest.so -InstTest </home/andy/llvm-3.0.src/workspace/threadTest/Debug/threadTest.bc> -o=</home/andy/output/out.bc> /dev/null</div><div><br></div><div>where </home/andy/llvm-3.0.src/workspace/threadTest/Debug/threadTest.bc> is the input file, and </home/andy/output/out.bc> is the expected output file. InstTest is my pass.</div><div><br></div><div>However, opt treat </home/andy/output/out.bc> as the input file, and I cannot find any output any where. Also, if I donot use the "-o" argument, the input
 is </home/andy/llvm-3.0.src/workspace/threadTest/Debug/threadTest.bc> as expected but still I cannot find the output (the resultant bitcode).</div><div><br></div><div>What should I do?</div><div><br></div><div>I am expecting for your reply. Thank you very much.</div><div><br></div><div>Best Regards,</div><div>Andy</div></td></tr></table>