From ba0e380ea9eaf051c45ce072f4cac7dccc867c90 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 13 Jun 2013 16:56:13 +0000 Subject: Add a version of DisplayGraph that takes a StringRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183915 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/GraphWriter.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index e867fae726..04daadf446 100644 --- a/include/llvm/Support/GraphWriter.h +++ b/include/llvm/Support/GraphWriter.h @@ -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 class GraphWriter { raw_ostream &O; -- cgit v1.2.3