Thank you ! I will now redirect the output .bc when dealing with transformation passes <br><br><div class="gmail_quote">On Wed, Feb 13, 2013 at 10:53 AM, Xi Wang <span dir="ltr"><<a href="mailto:xi.wang@gmail.com" target="_blank">xi.wang@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Feb 13, 2013 at 4:45 AM, Alexandru Ionut Diaconescu<br>
<<a href="mailto:alexandruionutdiaconescu@gmail.com">alexandruionutdiaconescu@gmail.com</a>> wrote:<br>
> Second, I apply my pass :<br>
> //..../llvm/Release+Asserts/bin/opt -load<br>
> //home/alex/llvm/Release+Asserts/lib/my_test_metadata.so -my-metadata<br>
> //..../llvm/tools/clang/woRKSPACE/Test.bc<br>
<br>
</div>opt doesn't make in-place changes to the input .bc.<br>
<br>
try:<br>
opt -load=your.so -my-metadata test.bc > output.bc<br>
<br>
or:<br>
opt -load=your.so -my-metadata test.bc -o output.bc<br>
</blockquote></div><br><br clear="all"><br>-- <br><font style="background-color:rgb(255,255,255);color:rgb(153,153,153)">Best regards,</font><br style="background-color:rgb(255,255,255);color:rgb(153,153,153)"><font style="background-color:rgb(255,255,255);color:rgb(153,153,153)">Alexandru Ionut Diaconescu</font><br>