diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 18:07:48 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-06 18:07:48 +0000 |
commit | 73d866efda92d25b74611f6c0348c8f8d9824e93 (patch) | |
tree | 490f49b9485e49dd27f9b4005109d4b37d251064 /llvm/tools/llvmc2/llvmc.cpp | |
parent | 7701512231d505be8cfbd97a8620e75360a72d73 (diff) | |
download | bcm5719-llvm-73d866efda92d25b74611f6c0348c8f8d9824e93.tar.gz bcm5719-llvm-73d866efda92d25b74611f6c0348c8f8d9824e93.zip |
Utilize topological sort in CompilationGraph::Build().
This makes more interesting graph topologies possible. Currently all tests pass,
but more testing is needed.
llvm-svn: 50744
Diffstat (limited to 'llvm/tools/llvmc2/llvmc.cpp')
-rw-r--r-- | llvm/tools/llvmc2/llvmc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvmc2/llvmc.cpp b/llvm/tools/llvmc2/llvmc.cpp index aeb8b331b40..87c0e41cdca 100644 --- a/llvm/tools/llvmc2/llvmc.cpp +++ b/llvm/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; |