[LLVMdev] llvm compiler
Duncan Sands
baldrick at free.fr
Wed Jan 30 06:31:10 PST 2013
Hi, it sounds like you are using llvm-as from an older version of LLVM.
Use the same version as you are using for clang.
Ciao, Duncan.
On 30/01/13 14:09, Manoj C wrote:
> hello sir,
> i compiled simple c program for printing hello world using clang front end it
> generates .s file successfully but while generating bit code it is showing error as
>
>
> llvm-as: test.s:5:17: error: expected 'global' or 'constant'
> @.str = private unnamed_addr constant [12 x i8] c"hello world\00"
>
> how to fix this error?
>
> the .s file is in assembly language(not understandable) to rectify the
> error.please help me to rectify it.
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
More information about the llvm-dev
mailing list