<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 3/27/13 8:54 PM, xiaoyaollvm wrote:<br>
</div>
<blockquote
cite="mid:649005b2.1b2f9.13daeb3c726.Coremail.xiaoyaollvm@126.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"> Hi
all<br>
I write a pass, which will link two module together,<br>
</div>
</blockquote>
<br>
There is already code in LLVM that does this. Is there a reason why
you're writing your own version?<br>
<br>
<blockquote
cite="mid:649005b2.1b2f9.13daeb3c726.Coremail.xiaoyaollvm@126.com"
type="cite">
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Is
there some method that I can obtain the path of the input file?<br>
If so, I can get the module by the path of the input.<br>
</div>
</blockquote>
<br>
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.<br>
<br>
<br>
-- John T.<br>
<br>
<blockquote
cite="mid:649005b2.1b2f9.13daeb3c726.Coremail.xiaoyaollvm@126.com"
type="cite">
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><br>
<span class="nui-menu-item-text">Or</span> Is there some method
that I can obtain the two modules of the input file by opt?<br>
<br>
Thanks,<br>
yaoxiao<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</body>
</html>