diff options
Diffstat (limited to 'tools/llvmc2/llvmc.cpp')
-rw-r--r-- | tools/llvmc2/llvmc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvmc2/llvmc.cpp b/tools/llvmc2/llvmc.cpp index aeb8b331b4..87c0e41cdc 100644 --- a/tools/llvmc2/llvmc.cpp +++ b/tools/llvmc2/llvmc.cpp @@ -38,7 +38,7 @@ cl::opt<std::string> OutputFilename("o", cl::desc("Output file name"), cl::opt<bool> VerboseMode("v", cl::desc("Enable verbose mode")); cl::opt<bool> WriteGraph("write-graph", - cl::desc("Write CompilationGraph.dot file"), + cl::desc("Write compilation-graph.dot file"), cl::Hidden); cl::opt<bool> ViewGraph("view-graph", cl::desc("Show compilation graph in GhostView"), @@ -72,7 +72,8 @@ int main(int argc, char** argv) { if (WriteGraph) { graph.writeGraph(); - return 0; + if (!ViewGraph) + return 0; } if (ViewGraph) { @@ -80,7 +81,6 @@ int main(int argc, char** argv) { return 0; } - if (InputFilenames.empty()) { std::cerr << "No input files.\n"; return 1; |