https://llvm.org/bugs/show_bug.cgi?id=28491
Bug ID: 28491 Summary: Generating C++ using -march=cpp generate code that does not compile Product: tools Version: 3.8 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: llc Assignee: unassignedb...@nondot.org Reporter: rj...@terransystems.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 16719 --> https://llvm.org/bugs/attachment.cgi?id=16719&action=edit this file contains the three files. Helloworld.c .ll and .cpp >From what I've been able to find, I believe this is an issue. I'm just starting to understand how to use LLVM in my own project was hoping this would help me learn the LLVM c++ api. The code generated for my simple Hello_world 'C' program does not compile. I've found a reference [http://lists.llvm.org/pipermail/llvm-dev/2016-February/095272.html] deals with one aspect of the code generated that needs to change - from : Value* int32_argc = args++; to : Value* int32_argc = &*(args++); // I believe >From searching the include path the following is in 'llvm/IR/' not as generated in <llvm/Analysis/Verifier.h> the instantiation of the PassManager needs the legacy namespace prefixed. There are other items I'm having issues with; 'PrintMessageAction' appears to be undefined. clang wants three parameters for ConstantExpr::getGetElementPtr(gvar_array__str, const_ptr_11_indices); I was really pleased to find out that I could create c++ code for my IR. examples are always useful. I'm hoping this report helps. I'm running Ubuntu 14.04. the installed version of clang 3.8.1 from LLVM download. Best regards Ray -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs