diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-05-30 19:50:47 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-05-30 19:50:47 +0000 |
commit | 77ba708819285931932ecd33691a672bb59d221a (patch) | |
tree | 3071021801ef2a662787c6cc565e48875c517d02 /lib/CodeGen/CodeGenModule.h | |
parent | c1cc6dccd42b91a2ebb397415940da91dbf36103 (diff) |
Allow the type of a global to be different from the type of its
associated declaration. This is a prerequisite to handling
general union initializations; for example, an array of unions involving
pointers has to be turned into a struct because the elements can have
incompatible types.
I refactored the code a bit to make it more readable; now, the logic for
definitions is all in EmitGlobalVarInit.
The second parameter for GetAddrOfGlobalVar is now dead; I'll remove it
separately.
By itself, this patch should not cause any visible changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions