[LLVMdev] Simple clang + llc crash on Windows 7

Don Williamson
2011-06-17T18:07:32Z

Hello,

I'm eager to get to know Clang+LLVM but I'm having some problems
generating debug information that force llc.exe to crash.

I'm running from the command-line on Windows 7 with clang+llvm versions 2.9
downloaded from the website. The input file is main.c:

     void mainCRTStartup()
     {
     }

This is compiled to intermediate with debug symbols using:

     clang -g -O0 -c main.c -emit-llvm -o main.bc

This runs fine and outputs main.bc - disassembly is here:
http://donw.org/main.bc.txt

I then try to comple that as an .obj file:

     llc -filetype=obj main.bc

And I get a crash with the error message:

     EmitRawText called on an MCStreamer that doesn't support it,  something
must not be fully mc'ized

I understand from the 2.9 release notes that filetype=obj is currently
experimentalbut the above is lifted from the visual studio intro on the website
with a couple of minor modifications.

Can I expect this to work? Am I doing something wrong?

Thanks!
- Don