I was looking at emitDebugARanges and noticed it was the only user of SectionMap.
The attached patch changes it to compute SectionMap and saves a call to sort.
Paths
| Differential D7347
Simplify arange output ClosedPublic Authored by • rafael on Feb 2 2015, 7:45 AM.
Details
Summary I was looking at emitDebugARanges and noticed it was the only user of SectionMap. The attached patch changes it to compute SectionMap and saves a call to sort.
Diff Detail
Event Timeline• rafael updated this object.
Comment Actions
It does. The code before creates a SectionMap that is then used to
It is. I committed that first and I will upload a rebased patch. Cheers, Comment Actions ping
dblaikie edited edge metadata. Comment ActionsLooks good -thanks! sorry for the delay (some optional/follow-up comments provided)
This revision is now accepted and ready to land.Feb 26 2015, 1:38 PM
Revision Contents
Diff 19172 lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
|
Refactoring might've been easier to understand if these two chunks had been pulled out into functions first, then the calls moved. (& might keep this function from getting quite so long/make it easier to read if there are some good names for these chunks of code (probably taken from the comment text))