aboutsummaryrefslogtreecommitdiff
path: root/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
commitcdaedf9f4acc60f8a7a1042af4be04291465e213 (patch)
treeb19a11dc2443d5bcdf4d0edd7e149dc1cdf623ca /lib/Support/GraphWriter.cpp
parent72af527f0154e84523f7afc5d38016e0e71e6bb1 (diff)
Silence unused function warning when graphviz is not available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/GraphWriter.cpp')
-rw-r--r--lib/Support/GraphWriter.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Support/GraphWriter.cpp b/lib/Support/GraphWriter.cpp
index aca46d8b75..32126ec39e 100644
--- a/lib/Support/GraphWriter.cpp
+++ b/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";