summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/GraphWriter.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-03-08 22:15:23 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-03-08 22:15:23 +0000
commit3bc40c5feee50214deba0a77ddc43443cff449f6 (patch)
treeba77f33637ab1b4f96d37dd1721e60488f342d99 /llvm/lib/Support/GraphWriter.cpp
parent85110b47c84a763004b3b0bbfd1feee3522b32b6 (diff)
downloadbcm5719-llvm-3bc40c5feee50214deba0a77ddc43443cff449f6.tar.gz
bcm5719-llvm-3bc40c5feee50214deba0a77ddc43443cff449f6.zip
Silence unused function warning when graphviz is not available.
llvm-svn: 152346
Diffstat (limited to 'llvm/lib/Support/GraphWriter.cpp')
-rw-r--r--llvm/lib/Support/GraphWriter.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Support/GraphWriter.cpp b/llvm/lib/Support/GraphWriter.cpp
index aca46d8b754..32126ec39eb 100644
--- a/llvm/lib/Support/GraphWriter.cpp
+++ b/llvm/lib/Support/GraphWriter.cpp
@@ -54,11 +54,9 @@ std::string llvm::DOT::EscapeString(const std::string &Label) {
}
// Execute the graph viewer. Return true if successful.
-static bool ExecGraphViewer(const sys::Path &ExecPath,
- std::vector<const char*> &args,
- const sys::Path &Filename,
- bool wait,
- std::string &ErrMsg) {
+static bool LLVM_ATTRIBUTE_UNUSED
+ExecGraphViewer(const sys::Path &ExecPath, std::vector<const char*> &args,
+ const sys::Path &Filename, bool wait, std::string &ErrMsg) {
if (wait) {
if (sys::Program::ExecuteAndWait(ExecPath, &args[0],0,0,0,0,&ErrMsg)) {
errs() << "Error: " << ErrMsg << "\n";
OpenPOWER on IntegriCloud