summaryrefslogtreecommitdiffstats
path: root/llvm/tools/analyze/analyze.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/analyze/analyze.cpp')
-rw-r--r--llvm/tools/analyze/analyze.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/analyze/analyze.cpp b/llvm/tools/analyze/analyze.cpp
index 3adef161de7..31639812488 100644
--- a/llvm/tools/analyze/analyze.cpp
+++ b/llvm/tools/analyze/analyze.cpp
@@ -92,7 +92,7 @@ enum Ans {
postdomset, postidom, postdomtree, postdomfrontier,
};
-cl::String InputFilename ("", "Load <arg> file to analyze", 0, "-");
+cl::String InputFilename ("", "Load <arg> file to analyze", cl::NoFlags, "-");
cl::Flag Quiet ("q", "Don't print analysis pass names", 0, false);
cl::EnumList<enum Ans> AnalysesList(cl::NoFlags,
clEnumVal(print , "Print each Method"),
@@ -132,8 +132,8 @@ struct {
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm analysis printer tool\n");
- Module *C = ParseBytecodeFile(InputFilename.getValue());
- if (!C && !(C = ParseAssemblyFile(InputFilename.getValue()))) {
+ Module *C = ParseBytecodeFile(InputFilename);
+ if (!C && !(C = ParseAssemblyFile(InputFilename))) {
cerr << "Input file didn't read correctly.\n";
return 1;
}
OpenPOWER on IntegriCloud