Hi John,<br><br>I run my pass this way:<br><br>opt -mypass <input.bc >output.bc<br><br>So I think "input.bc" is what I should expect, right?<br><br>Thanks,<br>Jack<br><br><br><div class="gmail_quote">On Tue, Nov 18, 2008 at 10:23 AM, John Criswell <span dir="ltr"><<a href="mailto:criswell@cs.uiuc.edu">criswell@cs.uiuc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">Jack Tzu-Han Hung wrote:<br>
> Hi all,<br>
><br>
> I'm writing my own pass and use "opt" to launch it. In my pass, I'd like to see the name of the module I'm working on, so I use getModuleIdentifier(), trying to get the name such as "test.bc." But the result is always <stdin>.<br>

><br>
> Could anyone please help me on this?<br>
><br>
</div></div>Is opt reading the input bitcode from standard input (as opposed to<br>
being given a filename)?  If so, that is probably why the module is<br>
named stdin.<br>
<br>
-- John T.<br>
<div class="Ih2E3d">> Thank you very much.<br>
><br>
> Jack<br>
><br>
><br>
><br>
<br>
</div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jack Tzu-Han Hung<br><a href="http://www.cs.princeton.edu/~thhung">www.cs.princeton.edu/~thhung</a><br>