Rewrite ConstStructBuilder with a mechanism that can cope with splitting and updating constants.

This adds a ConstantBuilder class that deals with incrementally building
an aggregate constant, including support for overwriting
previously-emitted parts of the aggregate with new values.

This fixes a bunch of cases where we used to be unable to reduce a
DesignatedInitUpdateExpr down to an IR constant, and also lays some
groundwork for emission of class constants with [[no_unique_address]]

Reviewers: rjmccall

Subscribers: cfe-commits

Tags: #clang

Differential Revision:

git-svn-id: 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed