[llvm-commits] CVS: llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp

Reid Spencer reid at x10sys.com
Sat Aug 21 14:00:34 PDT 2004



Changes in directory llvm/tools/llvm-bcanalyzer:

llvm-bcanalyzer.cpp updated: 1.1 -> 1.2
---
Log message:

Correct to change interface of the analyzer.


---
Diffs of the changes:  (+4 -2)

Index: llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
diff -u llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp:1.1 llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp:1.2
--- llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp:1.1	Thu Jul  1 22:22:53 2004
+++ llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp	Sat Aug 21 16:00:24 2004
@@ -41,6 +41,9 @@
 static cl::opt<std::string>
   InputFilename(cl::Positional, cl::desc("<input bytecode>"), cl::init("-"));
 
+static cl::opt<std::string>
+  OutputFilename("-o", cl::init("-"), cl::desc("<output file>"));
+
 static cl::opt<bool> NoDetails ("nodetails", cl::desc("Skip detailed output"));
 static cl::opt<bool> Dump      ("dump", cl::desc("Dump low level bytecode trace"));
 static cl::opt<bool> Verify    ("verify", cl::desc("Progressively verify module"));
@@ -59,12 +62,11 @@
   BytecodeAnalysis bca;
 
   /// Determine what to generate
-  bca.dumpBytecode = Dump;
   bca.detailedResults = !NoDetails;
   bca.progressiveVerify = Verify;
 
   /// Analyze the bytecode file
-  Module* M = AnalyzeBytecodeFile(InputFilename, bca, &ErrorMessage);
+  Module* M = AnalyzeBytecodeFile(InputFilename, bca, &ErrorMessage, (Dump?Out:0));
 
   // All that bcanalyzer does is write the gathered statistics to the output
   PrintBytecodeAnalysis(bca,*Out);






More information about the llvm-commits mailing list