This is an archive of the discontinued LLVM Phabricator instance.

CodeGen: refactor DwarfException
ClosedPublic

Authored by compnerd on Jun 10 2014, 9:47 AM.

Details

Summary

DwarfException served as a base class for exception handling directive emission.
However, this is also used by other exception models (e.g. Win64EH). Rename
this class to EHStreamer and split it out of DwarfException.h. NFC.

Use the opportunity to fix up some of the documentation comments to match
current LLVM style. Also rename some functions to conform better with current
LLVM coding style.

Diff Detail

Event Timeline

compnerd updated this revision to Diff 10284.Jun 10 2014, 9:47 AM
compnerd retitled this revision from to CodeGen: refactor DwarfException.
compnerd updated this object.
compnerd edited the test plan for this revision. (Show Details)
compnerd added reviewers: rnk, echristo.
compnerd set the repository for this revision to rL LLVM.
compnerd added a subscriber: Unknown Object (MLST).

Hi Saleem,

This looks like a very good idea. Just one comment on something that could be tidied at the same time...

lib/CodeGen/AsmPrinter/EHStreamer.cpp
33

It would be a shame to do this mass move and not take the opportunity to rename this "sharedTypeIds" to match the LLVM style guide.

Similarly for the other functions here. Most of them seem fairly localised.

compnerd updated this revision to Diff 10289.Jun 10 2014, 11:30 AM
compnerd updated this object.

Rename the functions as Tim suggested.

t.p.northover accepted this revision.Jun 10 2014, 11:34 AM
t.p.northover added a reviewer: t.p.northover.

Hi Saleem,

Thanks for doing the refactoring (both originally and my suggestions!). I think this looks good now.

Cheers.

Tim.

This revision is now accepted and ready to land.Jun 10 2014, 11:34 AM
echristo accepted this revision.Jun 10 2014, 11:36 AM
echristo edited edge metadata.

LGTM.

compnerd closed this revision.Jun 12 2014, 9:48 AM