Bugzilla – Bug 329
[llvmgcc] type names are not emitted for structure typedefs
Last modified: 2004-05-07 14:22:07
You need to log in before you can comment on or make changes to this bug.
The C front-end is not emitting LLVM type names for typedefs of structures. This is usually fine (because structs usually also have a tag), but causes us to not emit names at all for certain structs, defined like this: ---------------------------------- typedef struct { double W, X, Y, Z; } FOOTY; void test(FOOTY* A) {} ---------------------------------- Missing the symbolic type name makes the LLVM code unreadable for some programs like 188.ammp (and others) which have large structures defined like this. We currently compile this testcase into: void %test({ double, double, double, double }* %A) { entry: ret void } Where we would like to see: void %test(%FOOTY* %A) { entry: ret void } -Chris
Fixed. Patch here: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040503/014171.html -Chris