<div dir="ltr"><div>Also add a typedef for DITypeIdentifierMap and a helper</div><div>generateDITypeIdentifierMap in DebugInfo.h. In DwarfDebug.cpp, we keep</div><div>a DITypeIdentifierMap and call generateDITypeIdentifierMap to actually</div>
<div>populate the map. DwarfDebug also has a helper function lookupType that</div><div>finds the type MDNode for a given Value (either an identifier in MDString</div><div>or the actual MDNode).</div><div><br></div><div>Verifier is updated accordingly.</div>
<div><br></div><div>3 patches are attached:</div><div>The first one is a simple refactoring to add getField to DIDescriptor so we can use it to return Value* for getClassType.</div><div><br></div><div>The second one is the actual change to DIBuilder and DwarfDebug etc with an added testing case.</div>
<div><br></div><div>The last one is to update testing cases in clang.</div><div><br></div><div>Thanks,</div><div>Manman</div><div><br></div></div>