Add a version of DisplayGraph that takes a StringRef.

llvm-svn: 183915
This commit is contained in:
Rafael Espindola 2013-06-13 16:56:13 +00:00
parent bd2b610eba
commit 013b42cb1d
1 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,12 @@ namespace GraphProgram {
void DisplayGraph(const sys::Path& Filename, bool wait=true, GraphProgram::Name program = GraphProgram::DOT);
inline void DisplayGraph(StringRef Filename, bool wait = true,
GraphProgram::Name program = GraphProgram::DOT) {
sys::Path P(Filename);
DisplayGraph(P, wait, program);
}
template<typename GraphType>
class GraphWriter {
raw_ostream &O;