[LLVMdev] getModuleIdentifier() returns <stdin>

John Criswell criswell at cs.uiuc.edu
Tue Nov 18 07:23:23 PST 2008


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
>
>
>   




More information about the llvm-dev mailing list