[cfe-dev] clang and -integrated-as

Chris Lattner clattner at apple.com
Tue Apr 20 14:39:24 PDT 2010


On Apr 17, 2010, at 12:49 PM, Jean-Daniel Dupas wrote:
>>> It was a known issue, we just didn't get around to addressing it.  Fixed in r101660, thanks for nudging us!
>> 
>> Thanks for the quick fix :-)
> 
> Unfortunately, it does not works as expected. It uncovers an other blocking bug :-(
> 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.
> 
> =================
> @interface Foo { void *isa; }
> @end
> @implementation Foo
> @end
> =================
> 
> % clang -arch i386 -c test.m 
> % nm -m test.o
> 00000000 (absolute) external .objc_class_name_Foo
> 
> % clang -arch i386 -c test.m -integrated-as
> % nm -m test.o 
>          (undefined) external .objc_class_name_Foo

This is definitely a bug.  I filed it internally to track it, Daniel will take a look when he has a chance.

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100420/bfc581d8/attachment.html>


More information about the cfe-dev mailing list