<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thank you.<br>
So as far as i can see the C-API can merge/optimize/output modules
to native objectfiles. And linking must be done using lld for
example? By reading your answer and the lld page i have the
following question:<br>
<br>
- instead of a .lib file i can use a .dll, right? (your answer
implied only .lib)<br>
- if i have MyLibA.dll and MyLibB.dll and both export FooA and FooB
but i want to import FooA from MyLibA and FooB from MyLibB.dll, do i
have to declare the imports in 2 different llvmmodules for linking?<br>
<br>
Is there some document or something to read further? I don't want to
nuke everybody here with every single question i might have.<br>
<br>
<div class="moz-cite-prefix">Am 16.02.2016 um 20:07 schrieb David
Majnemer:<br>
</div>
<blockquote
cite="mid:CAL7bZ_cA5-+2Tih5eBRwQdimfuHVNPGBpUj2yaKfVnpdrwkTmA@mail.gmail.com"
type="cite">
<div dir="ltr">You don't specify that at the LLVM layer. Instead,
the linker is told which dll you want the import to resolve
against by specifying a .lib file as a linker input.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Feb 16, 2016 at 11:00 AM,
Alexander via llvm-dev <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:llvm-dev@lists.llvm.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I am absolutely new to LLVM. Currently reading through
documentation and the C-API (which i want to use). As i am
working on Windows, i was curios on how to specify an import
which links to a function exported by a dll. The
DLLStorageClass seems to be the wy to go, this seems clear.
But after declaring a function for import, how do i specify
the DLL the function is included in?<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a moz-do-not-send="true"
href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a moz-do-not-send="true"
href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev"
rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>