<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Le 17 avr. 2010 à 21:08, Jean-Daniel Dupas a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Le 17 avr. 2010 à 20:29, Chris Lattner a écrit :<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">On Apr 17, 2010, at 5:18 AM, Jean-Daniel Dupas wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Hello,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">After the post about LLVM-MC, I tried to play with the "-integrated-as" flag. <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Unfortunately, it does not works for a simple case which is an obj-c file with a class and a category to extend this class (on i386).<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">It was a known issue, we just didn't get around to addressing it.  Fixed in r101660, thanks for nudging us!<br></blockquote><br>Thanks for the quick fix :-)<font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><br></div><div>Unfortunately, it does not works as expected. It uncovers an other blocking bug :-(</div><div>The assembler generates an undefined symbol instead of generating an absolute symbol for classes, and so, in my test project, it now fails at linking time.</div><div><br></div><div>=================</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><span style="color: #cc00a2">@interface</span> Foo { <span style="color: #cc00a2">void</span> *isa; }</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(204, 0, 162); ">@end</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(204, 0, 162); ">@implementation<span style="color: #000000"> Foo</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(204, 0, 162); ">@end</div><div><font class="Apple-style-span" color="#CC00A2" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; ">=================</span></span></font></div><div><font class="Apple-style-span" color="#CC00A2" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div></div><div><div>% clang -arch i386 -c test.m </div><div>% nm -m test.o</div><div>00000000 (absolute) external .objc_class_name_Foo</div><div><br></div></div><div><div>% clang -arch i386 -c test.m -integrated-as</div><div>% nm -m test.o </div><div>         (undefined) external .objc_class_name_Foo</div><div><div><br></div></div><div><br></div></div><div>
<div>-- Jean-Daniel</div><div><br></div><div><br></div><br class="Apple-interchange-newline">
</div>
<br></body></html>