Thank you ! I will now redirect the output .bc when dealing with
transformation passes
On Wed, Feb 13, 2013 at 10:53 AM, Xi Wang <xi.wang at gmail.com> wrote:
> On Wed, Feb 13, 2013 at 4:45 AM, Alexandru Ionut Diaconescu
> <alexandruionutdiaconescu at gmail.com> wrote:
> > Second, I apply my pass :
> > //..../llvm/Release+Asserts/bin/opt -load
> > //home/alex/llvm/Release+Asserts/lib/my_test_metadata.so -my-metadata
> > //..../llvm/tools/clang/woRKSPACE/Test.bc
>
> opt doesn't make in-place changes to the input .bc.
>
> try:
> opt -load=your.so -my-metadata test.bc > output.bc
>
> or:
> opt -load=your.so -my-metadata test.bc -o output.bc
>
--
Best regards,
Alexandru Ionut Diaconescu
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20130213/30fdb0bf/attachment.html>