#include #include ">

LLVM: lib/Support/GraphWriter.cpp File Reference (original) (raw)

#include "[llvm/Support/GraphWriter.h](GraphWriter%5F8h%5Fsource.html)"
#include "[DebugOptions.h](DebugOptions%5F8h%5Fsource.html)"
#include "[llvm/ADT/SmallString.h](SmallString%5F8h%5Fsource.html)"
#include "[llvm/ADT/SmallVector.h](SmallVector%5F8h%5Fsource.html)"
#include "[llvm/ADT/StringRef.h](StringRef%5F8h%5Fsource.html)"
#include "llvm/Config/config.h"
#include "[llvm/Support/Compiler.h](Compiler%5F8h%5Fsource.html)"
#include "[llvm/Support/ErrorHandling.h](llvm%5F2Support%5F2ErrorHandling%5F8h%5Fsource.html)"
#include "[llvm/Support/ErrorOr.h](ErrorOr%5F8h%5Fsource.html)"
#include "[llvm/Support/FileSystem.h](FileSystem%5F8h%5Fsource.html)"
#include "[llvm/Support/Path.h](Path%5F8h%5Fsource.html)"
#include "[llvm/Support/Program.h](Program%5F8h%5Fsource.html)"
#include "[llvm/Support/raw_ostream.h](raw%5F%5Fostream%5F8h%5Fsource.html)"
#include <string>
#include <system_error>
#include <vector>

Go to the source code of this file.

Functions
static std::string replaceIllegalFilenameChars (std::string Filename, const char ReplacementChar)
static bool ExecGraphViewer (StringRef ExecPath, std::vector< StringRef > &args, StringRef Filename, bool wait, std::string &ErrMsg)
static const char * getProgramName (GraphProgram::Name program)

Function Documentation

ExecGraphViewer()

bool ExecGraphViewer ( StringRef ExecPath, std::vector< StringRef > & args, StringRef Filename, bool wait, std::string & ErrMsg ) static

Definition at line 135 of file GraphWriter.cpp.

References args, llvm::errs(), llvm::sys::ExecuteAndWait(), llvm::sys::ExecuteNoWait(), and llvm::sys::fs::remove().

Referenced by llvm::DisplayGraph().

getProgramName()

const char * getProgramName ( GraphProgram::Name program) static

Definition at line 174 of file GraphWriter.cpp.

References llvm::GraphProgram::CIRCO, llvm::GraphProgram::DOT, llvm::GraphProgram::FDP, llvm_unreachable, llvm::GraphProgram::NEATO, and llvm::GraphProgram::TWOPI.

Referenced by llvm::DisplayGraph().

replaceIllegalFilenameChars()

std::string replaceIllegalFilenameChars ( std::string Filename, const char ReplacementChar ) static

Definition at line 100 of file GraphWriter.cpp.

References llvm::sys::path::native, and llvm::replace().

Referenced by llvm::createGraphFilename().