[LLVMdev] How can a pass obtain the path of input file?
criswell at illinois.edu
Thu Mar 28 07:29:16 PDT 2013
On 3/27/13 8:54 PM, xiaoyaollvm wrote:
> Hi all
> I write a pass, which will link two module together,
There is already code in LLVM that does this. Is there a reason why
you're writing your own version?
> Is there some method that I can obtain the path of the input file?
> If so, I can get the module by the path of the input.
I don't know of any way to do this. The bytecode, in general, may not
be coming from a file. It may come from a pipe on standard input, for
example, on a Unix system.
-- John T.
> Or Is there some method that I can obtain the two modules of the input
> file by opt?
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev