[LLVMdev] typedef struct

Duncan Sands baldrick at free.fr
Sat Oct 3 07:56:55 PDT 2009


Hi Alvin,

> If I have a C struct declaration like this:
> 
> typedef struct typeA {...} typeB;
> 
> In the type symbol table generated should it contain an entry for struct.typeA 
> or struct.typeB?  I seem to have seen both cases using the same llvm toolchain 
> so I just wonder if I have done something wrong.

it doesn't matter what the name is since it has no effect on generated
code.  It's only in debug info that type names matter, so if you are not
seeing this in debug info I wouldn't worry about it if I were you.

Ciao,

Duncan.



More information about the llvm-dev mailing list