<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 17, 2010, at 5:18 AM, Jean-Daniel Dupas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello,</div><div><br></div><div>After the post about LLVM-MC, I tried to play with the "-integrated-as" flag. </div><div>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).</div></div></blockquote><div><br></div>It was a known issue, we just didn't get around to addressing it.  Fixed in r101660, thanks for nudging us!</div><div><br></div><div>-Chris</div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>@interface Foo { void *isa; } @end</div><div>@implementation Foo </div><div>@end</div><div><div>@implementation Foo (Bar)</div><div>@end</div><div><br></div><div><div>clang -arch i386 -integrated-as -c test.m</div><div><inline asm>:2:23: error: invalid assignment to '.objc_class_name_Foo'</div><div>        .objc_class_name_Foo=0</div><div><br></div><div>To be exact, it stopped on these lines:</div><div><br></div><div><div><span class="Apple-style-span" style="font-family: Monaco; font-size: 10px; "><span style="color: rgb(204, 0, 162); ">.lazy_reference</span> .objc_class_name_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); ">.objc_class_name_Foo<span style="color: rgb(0, 0, 0); ">=</span><span style="color: rgb(61, 0, 219); ">0</span></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: rgb(204, 0, 162); ">.globl</span> .objc_class_name_Foo</div></div><div><br></div><div>If the file does not contains a category, the .lazy_reference is not generated, and the code compile fine.</div><div><font class="Apple-style-span" color="#CC00A2" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;"><br></span></font></span></font></div><div>As LLVM-MV is fairly young, this is maybe a know issue, else should I fill a bug report  ?</div><div><br></div><div>Thanks</div></div></div><br><div>
<div>-- Jean-Daniel</div><div><br></div><div><br></div><br class="Apple-interchange-newline">
</div>
<br></div>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></blockquote></div><br></body></html>