This is an archive of the discontinued LLVM Phabricator instance.

GraphWriter: Provide an API for writing a graph into a specified file
ClosedPublic

Authored by george.karpenkov on Sep 27 2018, 3:25 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

NoQ accepted this revision.Sep 28 2018, 11:06 AM

I highly appreciate, because i'm dumping graphs every day, and this looks very handy.

llvm/include/llvm/Support/GraphWriter.h
339 ↗(On Diff #167407)

This function returns Filename on the success branch, should we pass it through here as well?

This revision is now accepted and ready to land.Sep 28 2018, 11:06 AM
llvm/include/llvm/Support/GraphWriter.h
339 ↗(On Diff #167407)

This is an error branch. Later on we also return an empty string in case of an error.

NoQ added inline comments.Sep 28 2018, 11:09 AM
llvm/include/llvm/Support/GraphWriter.h
339 ↗(On Diff #167407)

Whoops.

This revision was automatically updated to reflect the committed changes.