[llvm-commits] [llvm] r152346 - /llvm/trunk/lib/Support/GraphWriter.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Mar 8 14:15:24 PST 2012
Author: d0k
Date: Thu Mar 8 16:15:23 2012
New Revision: 152346
URL: http://llvm.org/viewvc/llvm-project?rev=152346&view=rev
Log:
Silence unused function warning when graphviz is not available.
Modified:
llvm/trunk/lib/Support/GraphWriter.cpp
Modified: llvm/trunk/lib/Support/GraphWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/GraphWriter.cpp?rev=152346&r1=152345&r2=152346&view=diff
==============================================================================
--- llvm/trunk/lib/Support/GraphWriter.cpp (original)
+++ llvm/trunk/lib/Support/GraphWriter.cpp Thu Mar 8 16:15:23 2012
@@ -54,11 +54,9 @@
}
// 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";
More information about the llvm-commits
mailing list