summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/Disassembler.cpp
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
commitff0e2a36e2574df7c5bb30ee491118b8007421c0 (patch)
tree183ba467fdea5faa80abf9b8ac5d16248f70dfab /llvm/tools/llvm-mc/Disassembler.cpp
parent0a2aff2d12ec21658516f19546c8cf3a6ef96ed9 (diff)
downloadbcm5719-llvm-ff0e2a36e2574df7c5bb30ee491118b8007421c0.tar.gz
bcm5719-llvm-ff0e2a36e2574df7c5bb30ee491118b8007421c0.zip
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. llvm-svn: 101155
Diffstat (limited to 'llvm/tools/llvm-mc/Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud