On Sep 28, 2008, at 8:15 PM, Karhu, Abhinav R wrote:
> I have compiled the program using the following option.
>
> llvm-gcc --emit-llvm Hello.c -o Hel.bc
>
> I have used llvm in the past but this sort of problem is new for me.
> I dont know how to go about it.
The documentation states that -emit-llvm has no effect without the -c
or -S options. What you want is
llvm-gcc -emit-llvm -c -o Hello.bc Hello.c
or if you want to see the textual representation of the IR, try
llvm-gcc -emit-llvm -S -o Hello.ll Hello.c
Brendan