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 | c18d9d53bbce6a2d57e46048d484838d787581aa (patch) | |
tree | 2cef93758e391b29a6c2f32939332fb55d2cfd32 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 48b9f4be9d66e934af274c98263e220d4a322c50 (diff) | |
download | bcm5719-llvm-c18d9d53bbce6a2d57e46048d484838d787581aa.tar.gz bcm5719-llvm-c18d9d53bbce6a2d57e46048d484838d787581aa.zip |
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.
llvm-svn: 51783
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions