<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>I have tried the following :-</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2> if (!M.empty())</FONT></DIV>
<DIV><FONT face="Courier New" size=2> for (Module::iterator I
= M.begin(), E = M.end(); I != E; ++I)</FONT></DIV>
<DIV><FONT face="Courier New" size=2> if (
!I->getIntrinsicID() && I->getEntryBlock().empty())</FONT></DIV>
<DIV><FONT face="Courier New" size=2>
O << "EXTERN " << Mang->getValueName(I) << " : NEAR"
<< "\n";</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Based upon :-</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Courier><SPAN class=keyword> virtual</SPAN>
<SPAN class=keywordtype>bool</SPAN> Function::</FONT><A class=code
href="http://illuvium.com/docs/doxygen/classllvm_1_1Function.html#a5"><FONT
face=Courier color=#000000>isExternal</FONT></A><FONT face=Courier>()<SPAN
class=keyword> const </SPAN>{ <SPAN class=keywordflow>return</SPAN>
BasicBlocks.empty(); }</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>But it does not work either.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Which means there must be a BasicBlock occuring on
undefined/external functions.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Anyway no hurry I am off to do other tasks for a
day or so.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Aaron</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></DIV></BODY></HTML>