[Type Uniquing Patch] Use identifier instead of MDNode for getClassType of ptr_to_member.

Manman Ren manman.ren at gmail.com
Fri Aug 30 10:40:29 PDT 2013


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. DwarfDebug also has a helper function lookupType that
finds the type MDNode for a given Value (either an identifier in MDString
or the actual MDNode).

Verifier is updated accordingly.

3 patches are attached:
The first one is a simple refactoring to add getField to DIDescriptor so we
can use it to return Value* for getClassType.

The second one is the actual change to DIBuilder and DwarfDebug etc with an
added testing case.

The last one is to update testing cases in clang.

Thanks,
Manman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130830/5305c290/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-getField-to-DIDescriptor.patch
Type: application/octet-stream
Size: 2985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130830/5305c290/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Debug-Info-Use-identifier-instead-of-MDNode-for-getC.patch
Type: application/octet-stream
Size: 11248 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130830/5305c290/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Debug-Info-Update-testing-case-when-DIBuilder-tries-.patch
Type: application/octet-stream
Size: 4173 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130830/5305c290/attachment-0002.obj>


More information about the llvm-commits mailing list