Hi John,
I run my pass this way:
opt -mypass <input.bc >output.bc
So I think "input.bc" is what I should expect, right?
Thanks,
Jack
On Tue, Nov 18, 2008 at 10:23 AM, John Criswell <criswell at
cs.uiuc.edu>wrote:
> Jack Tzu-Han Hung wrote:
> > Hi all,
> >
> > 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>.
> >
> > Could anyone please help me on this?
> >
> Is opt reading the input bitcode from standard input (as opposed to
> being given a filename)? If so, that is probably why the module is
> named stdin.
>
> -- John T.
> > Thank you very much.
> >
> > Jack
> >
> >
> >
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
--
Jack Tzu-Han Hung
www.cs.princeton.edu/~thhung
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20081118/2b7407e0/attachment.html>