aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-13 18:16:19 +0000
committerChris Lattner <sabre@nondot.org>2010-04-13 18:16:19 +0000
commit8ce9e451b421e4c941bc120bcc7f422457656d63 (patch)
tree692a75c4f5028de093f23354cf3799bff90b6fe4 /lib/CodeGen/CodeGenFunction.h
parentb5e8156ebd6accd27daeaae6971597c45d5e5139 (diff)
Rework the ConstStructBuilder code to emit missing initializer
elements with explicit zero values instead of with tail padding. On an example like this: struct foo { int a; int b; }; struct foo fooarray[] = { {1, 2}, {4}, }; We now lay this out as: @fooarray = global [2 x %struct.foo] [%struct.foo { i32 1, i32 2 }, %struct.foo { i32 4, i32 0 }] instead of as: @fooarray = global %0 <{ %struct.foo { i32 1, i32 2 }, %1 { i32 4, [4 x i8] zeroinitializer } }> Preserving both the struct type of the second element, but also the array type of the entire thing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions