[llvm-commits] [llvm-gcc-4.2] r46450 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-internal.h llvm-types.cpp
Duncan Sands
baldrick at free.fr
Mon Jan 28 12:02:18 PST 2008
Hi Evan,
> > You should let QUAL_UNION through here as well. And what about size-
> > zero
> > arrays? Or for that matter, zero size anything?
>
> What exactly is QUAL_UNION? I am pretty sure other cases (especially
> zero sized arrays) are handled differently.
QUAL_UNION is a union with an associated variable saying which of the
union fields you can use (so this is only known at runtime in general).
It is not used by the C-like languages. It is used by Ada to implement
variant records, which I think Ada inherited from Pascal. You can mostly
treat a QUAL_UNION the same as a union.
Ciao,
Duncan.
More information about the llvm-commits
mailing list