[LLVMdev] convert c++ to c: using FAQ

Waqar Malik waqarmalik at gmail.com
Thu Dec 1 11:14:33 PST 2011


Howdy all:

I'm on OS-X snow leopard, and am using XCode 4.2
I'm following the FAQ to try converting c++ to c

llvm-g++ -emit-llvm -c temp.cpp -o temp.bc
llc -march=c temp.bc -o temp.c

I'm getting the following error:
llc: temp.bc: Invalid ALLOCA record

Anyone knows what I should do to correct it ?

Waqar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111201/b6b6a586/attachment.html>


More information about the llvm-dev mailing list