This is an archive of the discontinued LLVM Phabricator instance.

Add the ability to get a signed integer attribute from a DWARFDebugInfoEntry.
AbandonedPublic

Authored by clayborg on Nov 23 2016, 3:53 PM.

Details

Summary

Trying to keep things smaller. This will be needed by an upcoming DWARF generator patch, but this is small and self contained.

Diff Detail

Event Timeline

clayborg updated this revision to Diff 79164.Nov 23 2016, 3:53 PM
clayborg retitled this revision from to Add the ability to get a signed integer attribute from a DWARFDebugInfoEntry..
clayborg updated this object.
dblaikie edited edge metadata.Nov 23 2016, 4:10 PM

Trying to keep things smaller. This will be needed by an upcoming DWARF generator patch, but this is small and self contained.

I /really/ appreciate the effort to keep patches small - it helps everyone (faster to review (good for you and reviewers), easier to revert or investigate when looking for regressions, etc). But the converse of that - is that we don't generally commit dead code (that's why it's great to find an existing use case that could be improved by a refactoring/introduction of a new piece of functionality, etc).

If there's an existing piece of the codebase that could benefit from this API (reduce code duplication, etc) that you could add such a use to this patch, it'd be great to review/commit it separately like this, otherwise it may have to be grouped with anotehr commit - or at least a unit test?

clayborg abandoned this revision.Nov 23 2016, 4:41 PM

Yeah, can't do a unit test until I get the DWARF generator in. I will bundle it with that then.