llvm.org GIT mirror llvm / d7bb87a
Do not require positional arguments when we're only printing out the graph. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50742 91177308-0d34-0410-b5e6-96231b3b80d8 Mikhail Glushenkov 12 years ago
1 changed file(s) with 13 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3131 // External linkage here is intentional.
3232
3333 cl::list InputFilenames(cl::Positional, cl::desc(""),
34 cl::OneOrMore);
34 cl::ZeroOrMore);
3535 cl::opt OutputFilename("o", cl::desc("Output file name"),
3636 cl::value_desc("file"));
3737 cl::opt VerboseMode("v",
6969 "LLVM Compiler Driver(Work In Progress)");
7070 PopulateCompilationGraph(graph);
7171
72 if(WriteGraph)
72 if (WriteGraph) {
7373 graph.writeGraph();
74 if(ViewGraph)
74 return 0;
75 }
76
77 if (ViewGraph) {
7578 graph.viewGraph();
79 return 0;
80 }
81
82 if (InputFilenames.empty()) {
83 std::cerr << "No input files.\n";
84 return 1;
85 }
7686
7787 return BuildTargets(graph);
7888 }