forked from OSchip/llvm-project
Add a version of DisplayGraph that takes a StringRef.
llvm-svn: 183915
This commit is contained in:
parent
bd2b610eba
commit
013b42cb1d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue