hanchenye-llvm-project/clang
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
..
INPUTS
bindings [libclang] Expose the rest of the array types. 2013-07-23 17:36:21 +00:00
docs [doxygen] Add a few missing variables to the doxygen.cfg.in for external search and cleaned up external_search_map. 2013-08-28 21:55:41 +00:00
examples Remove unused header. 2013-06-26 13:49:47 +00:00
include Consumed analysis: improve handling of conditionals. 2013-08-29 17:26:57 +00:00
lib Debug Info: generate a unique identifier for C++ struct, class, union, and enum. 2013-08-29 18:51:51 +00:00
runtime [LSan] Add support for building standalone LSan runtime to Make build (clang part) 2013-08-20 14:49:36 +00:00
test Debug Info: generate a unique identifier for C++ struct, class, union, and enum. 2013-08-29 18:51:51 +00:00
tools Move individual group name strings from the OptionTable into one big char array. Then only store offsets into it in the OptionTable. Saves about 4K from the clang binary and removes 400 relocation entries from DiagnosticIDs.o. 2013-08-29 05:18:04 +00:00
unittests Better support for multiline string literals (including C++11 raw string literals). 2013-08-29 17:32:57 +00:00
utils mangle aarch64 Neon ACLE scalar instrinsic name with BHSD suffix. 2013-08-29 07:55:15 +00:00
www [analyzer] Note that deadcode.UnmodifiedVariable would be an opt-in checker. 2013-08-19 23:54:35 +00:00
.arcconfig
.gitignore
CMakeLists.txt [doxygen] Added code for generating doxygen documentation for clang for cmake. 2013-08-28 20:29:40 +00:00
CODE_OWNERS.TXT Revert r185557 as it was a bit (a lot) premature. 2013-07-03 20:37:50 +00:00
INSTALL.txt Reverting test commit 2013-06-07 05:33:21 +00:00
LICENSE.TXT
Makefile
ModuleInfo.txt
NOTES.txt
README.txt

README.txt

//===----------------------------------------------------------------------===//
// C Language Family Front-end
//===----------------------------------------------------------------------===//

Welcome to Clang.  This is a compiler front-end for the C family of languages
(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things
beyond just compiling code: we intend for Clang to be host to a number of
different source level tools.  One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read
the relevant web sites.  Here are some pointers:

Information on Clang:              http://clang.llvm.org/
Building and using Clang:          http://clang.llvm.org/get_started.html
Clang Static Analyzer:             http://clang-analyzer.llvm.org/
Information on the LLVM project:   http://llvm.org/

If you have questions or comments about Clang, a great place to discuss them is
on the Clang development mailing list:
  http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

If you find a bug in Clang, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/