[cfe-dev] clang and -integrated-as
Chris Lattner
clattner at apple.com
Sat Apr 17 11:29:11 PDT 2010
On Apr 17, 2010, at 5:18 AM, Jean-Daniel Dupas wrote:
> Hello,
>
> After the post about LLVM-MC, I tried to play with the "-integrated-as" flag.
> 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).
It was a known issue, we just didn't get around to addressing it. Fixed in r101660, thanks for nudging us!
-Chris
>
> @interface Foo { void *isa; } @end
> @implementation Foo
> @end
> @implementation Foo (Bar)
> @end
>
> clang -arch i386 -integrated-as -c test.m
> <inline asm>:2:23: error: invalid assignment to '.objc_class_name_Foo'
> .objc_class_name_Foo=0
>
> To be exact, it stopped on these lines:
>
> .lazy_reference .objc_class_name_Foo
> .objc_class_name_Foo=0
> .globl .objc_class_name_Foo
>
> If the file does not contains a category, the .lazy_reference is not generated, and the code compile fine.
>
> As LLVM-MV is fairly young, this is maybe a know issue, else should I fill a bug report ?
>
> Thanks
>
> -- Jean-Daniel
>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100417/9b5907d4/attachment.html>
More information about the cfe-dev
mailing list