This is an archive of the discontinued LLVM Phabricator instance.

Use a single data structure to store all user variables in DwarfDebug
ClosedPublic

Authored by samsonov on Apr 30 2014, 3:50 PM.

Details

Summary

Get rid of UserVariables set, and turn DbgValues into MapVector
to get a fixed ordering, as suggested in review for http://reviews.llvm.org/D3573.

Diff Detail

Event Timeline

samsonov updated this revision to Diff 8997.Apr 30 2014, 3:50 PM
samsonov retitled this revision from to Use a single data structure to store all user variables in DwarfDebug.
samsonov updated this object.
samsonov edited the test plan for this revision. (Show Details)
samsonov added a reviewer: dblaikie.
samsonov added a subscriber: Unknown Object (MLST).
dblaikie accepted this revision.Apr 30 2014, 4:01 PM
dblaikie edited edge metadata.
dblaikie added inline comments.
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
1207

You can probably push DIVariable DV(Var) up to DIVariable DV(I.first) and Processed.count(DV) (I think the implicit conversion to MDNode* will work out here). Just to avoid having that raw MDNode* lying around.

Not necessary, up to you if you want to do it at all and either in this commit or separately.

1453

Looks great & makes a lot more sense to me now.

This revision is now accepted and ready to land.Apr 30 2014, 4:01 PM
samsonov added inline comments.Apr 30 2014, 4:08 PM
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
1207

Done.

samsonov closed this revision.Apr 30 2014, 4:09 PM