mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
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
This commit is contained in:
parent
72af527f01
commit
cdaedf9f4a
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user