[LLVMdev] Experimental fixes to CBackend

Dmitry N. Mikushin maemarcus at gmail.com
Fri Aug 5 07:57:01 PDT 2011


Hi,

LLVM C backend as of revision 136600 suffers from the following issues:

* Forward structs declarations block is missing (it was there
previously, why was it removed?)
* Anonymous container structs are not generated for array types,
resulting into declarations being placed directly into functions
prototypes (previously it was not happening as well)

I'm not very familiar with llvm internals, but tried by best to fix
the problems. Please see proposed patches in attachment. Briefly, I'm
creating fictive StructType for each ArrayType and slightly changing
logic of anonymous structs definition to account the special case of
ArrayType-s.

- D.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: text/x-patch
Size: 5153 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110805/e3b6d54e/attachment.bin>


More information about the llvm-dev mailing list