diff options
| author | Manman Ren <manman.ren@gmail.com> | 2013-09-05 18:48:31 +0000 |
|---|---|---|
| committer | Manman Ren <manman.ren@gmail.com> | 2013-09-05 18:48:31 +0000 |
| commit | 60352032bf87498601f436c9ed77c235c82f3d29 (patch) | |
| tree | c7c74d94f287cf792e7cbd171ef14d1e4e240dd9 /llvm/lib/Support/StringRef.cpp | |
| parent | 13c68ef88b23458a5030579e651fd204c8d3a0b8 (diff) | |
| download | bcm5719-llvm-60352032bf87498601f436c9ed77c235c82f3d29.tar.gz bcm5719-llvm-60352032bf87498601f436c9ed77c235c82f3d29.zip | |
Debug Info: Use identifier to reference DIType in base type field of
ptr_to_member.
We introduce a new class DITypeRef that represents a reference to a DIType.
It wraps around a Value*, which can be either an identifier in MDString
or an actual MDNode. The class has a helper function "resolve" that
finds the actual MDNode for a given DITypeRef.
We specialize getFieldAs to return a field that is a reference to a
DIType. To correctly access the base type field of ptr_to_member,
getClassType now calls getFieldAs<DITypeRef> to return a DITypeRef.
Also add a typedef for DITypeIdentifierMap and a helper
generateDITypeIdentifierMap in DebugInfo.h. In DwarfDebug.cpp, we keep
a DITypeIdentifierMap and call generateDITypeIdentifierMap to actually
populate the map.
Verifier is updated accordingly.
llvm-svn: 190081
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions

