[llvm-commits] CVS: llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h

LLVM llvm at cs.uiuc.edu
Wed Jun 9 01:21:02 PDT 2004


Changes in directory llvm/lib/Bytecode/Analyzer:

AnalyzerInternals.h updated: 1.2 -> 1.3

---
Log message:

Move parsing details to Parser.cpp.


---
Diffs of the changes:  (+0 -25)

Index: llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h
diff -u llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h:1.2 llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h:1.3
--- llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h:1.2	Tue Jun  8 00:52:29 2004
+++ llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h	Wed Jun  9 01:15:21 2004
@@ -14,33 +14,14 @@
 #ifndef ANALYZER_INTERNALS_H
 #define ANALYZER_INTERNALS_H
 
-#include "ReaderPrimitives.h"
 #include "Parser.h"
 #include "llvm/Bytecode/Analyzer.h"
 #include "llvm/Constants.h"
 #include "llvm/DerivedTypes.h"
 
-// Enable to trace to figure out what the heck is going on when parsing fails
-//#define TRACE_LEVEL 10
-//#define DEBUG_OUTPUT
-
-#if TRACE_LEVEL    // ByteCodeReading_TRACEr
-#define BCR_TRACE(n, X) \
-    if (n < TRACE_LEVEL) std::cerr << std::string(n*2, ' ') << X
-#else
-#define BCR_TRACE(n, X)
-#endif
 
 namespace llvm {
 
-inline void AbstractBytecodeParser::readBlock(const unsigned char *&Buf,
-			       const unsigned char *EndBuf, 
-			       unsigned &Type, unsigned &Size)
-{
-  Type = read(Buf, EndBuf);
-  Size = read(Buf, EndBuf);
-}
-
 class BytecodeAnalyzer {
   BytecodeAnalyzer(const BytecodeAnalyzer &);  // DO NOT IMPLEMENT
   void operator=(const BytecodeAnalyzer &);  // DO NOT IMPLEMENT
@@ -61,12 +42,6 @@
     BytecodeAnalysis& bca,
     const std::string &ModuleID
   );
-
-  void dump() const {
-    std::cerr << "BytecodeParser instance!\n";
-  }
-private:
-  BytecodeAnalysis TheAnalysis;
 };
 
 } // End llvm namespace





More information about the llvm-commits mailing list