[LLVMdev] llvm compiler

Manoj C manoj.chinthala at gmail.com
Wed Jan 30 05:09:35 PST 2013

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130130/e946112e/attachment.html>

More information about the llvm-dev mailing list