Go to file
Manman Ren 035c4b029f Debug Info: generate a unique identifier for C++ struct, class, union, and enum.
We use CXX mangler to generate unique identifier for external C++ struct,
union, class and enum. Types with unique identifier are added to RetainedTypes
to make sure they are treated as used even when all uses are replaced with
the identifiers.

A single type can be added to RetainedTypes multiple times. For example, both 
createForwardDecl and createLimitedType can add the same type to RetainedTypes.
A set is used to avoid duplication when updating AllRetainTypes in DIBuilder.

Testing cases are updated to reflect the unique identifier generated for types.
The order of MDNodes is changed because of retained types and testing cases
are updated accordingly.

Testing case debug-info-uuid.cpp now emits error with Itanium mangler, since
uuid is not yet handled in Itanium mangler.

We choose to update RetainedTypes in clang, then at finalize(), we update
AllRetainTypes in DIBuilder. The other choice is to update AllRetainTypes
in DIBuilder when creating a DICompositeType with unique identifier. This
option requires using ValueHandle for AllRetainTypes in DIBuilder since
the created DICompositeType can be modified later on by setContainingType etc.

llvm-svn: 189600
2013-08-29 18:51:51 +00:00
clang Debug Info: generate a unique identifier for C++ struct, class, union, and enum. 2013-08-29 18:51:51 +00:00
clang-tools-extra cpp11-migrate: Add Pass-By-Value Transform 2013-08-29 13:42:13 +00:00
compiler-rt Minor updates to gen_dynamic_list script suggested by glider 2013-08-29 15:45:41 +00:00
debuginfo-tests Now that we get non-trivial value parameters locations correct, un-XFAIL these tests. 2013-06-19 22:07:11 +00:00
libclc Add mul_hi implementation [v2] 2013-08-19 18:31:49 +00:00
libcxx Mark issues 2147, 2149, 2163, 2172, 2098 and 2177 as complete. No code changes to libc++ 2013-08-29 15:35:54 +00:00
libcxxabi Propagate the removal of _LIBCPP_CANTTHROW (r189046) to libcxxabi. This fixes http://llvm.org/bugs/show_bug.cgi?id=16996. 2013-08-25 17:00:57 +00:00
lld [PECOFF] Fix bug that section grouping may lay out atoms in a wrong order. 2013-08-29 07:46:23 +00:00
lldb Disable stub Host::FindProcesses on FreeBSD 2013-08-29 18:44:27 +00:00
llvm Fix the following error when NDEBUG is defined: 2013-08-29 18:49:35 +00:00
polly Remove unneeded comma and update formatting 2013-08-24 17:58:59 +00:00