[PATCH] D42082: Add DWARF for discriminated unions

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 31 09:06:15 PST 2018


aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.

The only thing I am left wondering is if we should make DICompositeType's in-memory representation have a variable number of operands, so we don't have to pay for the extra pointer, which could pay off when compiling C++. That said, this is an implementation detail that we can fix in a subsequent patch without changing the interface so I'm fine with taking this as is.

One last thing: Can you please make sure that there is a binary bitcode upgrade test in test/Bitcode that exercises the upgrade from the older shorter version of DICompositeType in MetadataLoder.cpp and if not, add one? Thanks!


Repository:
  rL LLVM

https://reviews.llvm.org/D42082





More information about the llvm-commits mailing list