forked from OSchip/llvm-project
Silence unused function warning when graphviz is not available.
llvm-svn: 152346
This commit is contained in:
parent
85110b47c8
commit
3bc40c5fee
|
@ -54,11 +54,9 @@ std::string llvm::DOT::EscapeString(const std::string &Label) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute the graph viewer. Return true if successful.
|
// Execute the graph viewer. Return true if successful.
|
||||||
static bool ExecGraphViewer(const sys::Path &ExecPath,
|
static bool LLVM_ATTRIBUTE_UNUSED
|
||||||
std::vector<const char*> &args,
|
ExecGraphViewer(const sys::Path &ExecPath, std::vector<const char*> &args,
|
||||||
const sys::Path &Filename,
|
const sys::Path &Filename, bool wait, std::string &ErrMsg) {
|
||||||
bool wait,
|
|
||||||
std::string &ErrMsg) {
|
|
||||||
if (wait) {
|
if (wait) {
|
||||||
if (sys::Program::ExecuteAndWait(ExecPath, &args[0],0,0,0,0,&ErrMsg)) {
|
if (sys::Program::ExecuteAndWait(ExecPath, &args[0],0,0,0,0,&ErrMsg)) {
|
||||||
errs() << "Error: " << ErrMsg << "\n";
|
errs() << "Error: " << ErrMsg << "\n";
|
||||||
|
|
Loading…
Reference in New Issue