clang -cc1 -emit-llvm -S emits assembly?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

clang -cc1 -emit-llvm -S emits assembly?

Jakob Stoklund Olesen
Hi,

The clang test CodeGenObjC/property-complex.m has this RUN line:

// RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm -S -o - %s

This causes clang to emit x86 assembly, not LLVM IR to stdout. Is that intended?

I would expect '-emit-llvm -S' to generate textual LLVM IR, like llvm-gcc does.


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: clang -cc1 -emit-llvm -S emits assembly?

jahanian

On May 11, 2010, at 11:39 AM, Jakob Stoklund Olesen wrote:

> Hi,
>
> The clang test CodeGenObjC/property-complex.m has this RUN line:
>
> // RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm -S -o - %s
>
> This causes clang to emit x86 assembly, not LLVM IR to stdout. Is  
> that intended?
Probably not. Test changed in r103487

- Fariborz

>
>
> I would expect '-emit-llvm -S' to generate textual LLVM IR, like  
> llvm-gcc does.
>
>
> _______________________________________________
> cfe-dev mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev