Refactor ConstantInitBuilder to allow other frontends to more
authorJohn McCall <rjmccall@apple.com>
Sat, 4 Mar 2017 21:26:29 +0000 (21:26 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 4 Mar 2017 21:26:29 +0000 (21:26 +0000)
commit32e0d18605c260ad9a19b1f58c85f53606e0e142
tree496fc7ab2e8e8ef53d47256e5fddce62704c2849
parentb974be5ef49680b3cfee484a91da9b11169c3f68
Refactor ConstantInitBuilder to allow other frontends to more
easily extend the aggregate-builder API.  Stupid missing language
features.

Also add APIs for constructing a relative reference and computing
the offset of a position from the start of the initializer.

llvm-svn: 296979
clang/include/clang/CodeGen/ConstantInitBuilder.h
clang/lib/CodeGen/ConstantInitBuilder.cpp