[LLVMdev] getModuleIdentifier() returns <stdin>

Jack Tzu-Han Hung thhung at cs.princeton.edu
Tue Nov 18 07:20:03 PST 2008


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?

Thank you very much.

Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081118/5f11c1b2/attachment.html>


More information about the llvm-dev mailing list