Go to file
Duncan P. N. Exon Smith 9738602869 IR: Enable debug info type ODR uniquing for forward decls
Add a new method, DICompositeType::buildODRType, that will create or
mutate the DICompositeType for a given ODR identifier, and use it in
LLParser and BitcodeReader instead of DICompositeType::getODRType.

The logic is as follows:

  - If there's no node, create one with the given arguments.
  - Else, if the current node is a forward declaration and the new
    arguments would create a definition, mutate the node to match the
    new arguments.
  - Else, return the old node.

This adds a missing feature supported by the current DITypeIdentifierMap
(which I'm slowly making redudant).  The only remaining difference is
that the DITypeIdentifierMap has a "the-last-one-wins" rule, whereas
DICompositeType::buildODRType has a "the-first-one-wins" rule.

For now I'm leaving behind DICompositeType::getODRType since it has
obvious, low-level semantics that are convenient for unit testing.

llvm-svn: 266786
2016-04-19 18:00:19 +00:00
clang [CodeGen] Widen non-power-of-2 vector HFA base types. 2016-04-19 17:54:29 +00:00
clang-tools-extra [Release Notes] Mention Clang-tidy misc-unused-using-decls check. 2016-04-19 17:31:58 +00:00
compiler-rt [LSAN] Fix test swapcontext.cc on MIPS 2016-04-19 06:00:35 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc prepare-builtins: Remove call to getGlobalContext() 2016-04-15 14:18:58 +00:00
libcxx Framework to allow testing of static libc++abi 2016-04-19 12:49:05 +00:00
libcxxabi Enable testing for static libc++abi 2016-04-19 12:47:38 +00:00
libunwind [AArch64] Fix libunwind build when using GNU assembler 2016-02-11 21:22:57 +00:00
lld Updated comment. NFC. 2016-04-19 12:09:25 +00:00
lldb Revert "LLDB: Fixed two race conditions when stopping private state thread" 2016-04-19 14:03:43 +00:00
llgo benchcomp: Add a mode for analyzing rule execution time in ninja log files. 2016-04-08 22:42:22 +00:00
llvm IR: Enable debug info type ODR uniquing for forward decls 2016-04-19 18:00:19 +00:00
openmp [ITTNOTIFY] Remove serialized parallel regions from frame notification 2016-04-19 16:55:17 +00:00
polly Relate domains to statements during construction [NFC] 2016-04-19 14:53:13 +00:00