<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Ok. Thank you. But can I use LLVMHello in another way, instead a loadable module? In another words, there is another way to build passes in LLVM whitout using loadable modules? All documents that I saw are using loadable modules.
<span>Is it not possible to write a new pass to </span>LLVM in Windows? Thanks. </p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>De:</b> meinersbur@googlemail.com <meinersbur@googlemail.com> em nome de Michael Kruse <llvmdev@meinersbur.de><br>
<b>Enviado:</b> segunda-feira, 15 de maio de 2017 11:09<br>
<b>Para:</b> Joćo Francisco<br>
<b>Cc:</b> llvm-dev@lists.llvm.org<br>
<b>Assunto:</b> Re: [llvm-dev] LLVMHello doesn't work - Loadable modules</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Loadable modules are not supported on Windows. The windows platform<br>
requires that each dynamically imported symbol also declare the dll it<br>
is imported from. In the source, this would be done by annotation<br>
every symbol as  __declspec(dllimport)/__declspec(dllimport) (or write<br>
a.DEF file). This has not been done in LLVM's source.<br>
<br>
I am not sure about the future of loadable modules. The new pass<br>
manager doesn't support that mechanism (yet?).<br>
<br>
Michael<br>
<br>
<br>
2017-05-11 17:16 GMT+02:00 Joćo Francisco via llvm-dev<br>
<llvm-dev@lists.llvm.org>:<br>
> When I build LLVM, the message LLVMHello ignored -- Loadable modules not<br>
> supported on this platform is shown and the LLVM Hello pass doesn't work. I<br>
> am using Windows. Is this correct? LLVM Hello pass works only on Linux?<br>
> Thanks.<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> llvm-dev@lists.llvm.org<br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" id="LPlnk386201" previewremoved="true">
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
<div id="LPBorder_GT_14948743708850.5981736353018084" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14948743708750.010049189619681709" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_14948743708770.4962727723550141" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_14948743708780.778986902184846"></div>
<div id="LPTitle_14948743708780.03876651276027476" style="top: 0px; color: rgb(0, 75, 139); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14948743708800.5590104402062179" style="text-decoration: none;" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">llvm-dev Info Page</a></div>
<div id="LPMetadata_14948743708810.47660775671520283" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
lists.llvm.org</div>
<div id="LPDescription_14948743708830.40258465553965106" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
To see the collection of prior postings to the list, visit the llvm-dev Archives. Using llvm-dev: To post a message to all the list members, send ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
><br>
</div>
</span></font></div>
</div>
</body>
</html>