This is an archive of the discontinued LLVM Phabricator instance.

Simplify use of formatted_raw_ostream
ClosedPublic

Authored by rafael on Apr 9 2015, 1:02 PM.

Details

Summary

formatted_raw_ostream is a wrapper over another stream to add column and line number tracking.

It is used only for asm printing.

This patch moves the its creation down to where we know we are printing assembly. This has the following advantages:

  • Simpler lifetime management: std::unique_ptr
  • We don't compute column and line number of object files :-)

Diff Detail

Repository
rL LLVM

Event Timeline

rafael updated this revision to Diff 23526.Apr 9 2015, 1:02 PM
rafael retitled this revision from to Simplify use of formatted_raw_ostream.
rafael updated this object.
rafael edited the test plan for this revision. (Show Details)
rafael added reviewers: dexonsmith, chandlerc.
rafael set the repository for this revision to rL LLVM.
rafael added a subscriber: Unknown Object (MLST).
chandlerc accepted this revision.Apr 9 2015, 1:08 PM
chandlerc edited edge metadata.

Seems much cleaner to me. LGTM provided others don't see a problem here.

This revision is now accepted and ready to land.Apr 9 2015, 1:08 PM
rafael closed this revision.Apr 9 2015, 2:11 PM