Move parsing details to Parser.cpp.
authorReid Spencer <rspencer@reidspencer.com>
Wed, 9 Jun 2004 06:15:21 +0000 (06:15 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 9 Jun 2004 06:15:21 +0000 (06:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14088 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Analyzer/AnalyzerInternals.h
lib/Bytecode/Reader/AnalyzerInternals.h

index a1a393d29760edbeedf30ac321ee1e0cf78b9f27..d7733c7176b06f955c70d9f4559b634d97fb5958 100644 (file)
 #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 @@ public:
     BytecodeAnalysis& bca,
     const std::string &ModuleID
   );
-
-  void dump() const {
-    std::cerr << "BytecodeParser instance!\n";
-  }
-private:
-  BytecodeAnalysis TheAnalysis;
 };
 
 } // End llvm namespace
index a1a393d29760edbeedf30ac321ee1e0cf78b9f27..d7733c7176b06f955c70d9f4559b634d97fb5958 100644 (file)
 #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 @@ public:
     BytecodeAnalysis& bca,
     const std::string &ModuleID
   );
-
-  void dump() const {
-    std::cerr << "BytecodeParser instance!\n";
-  }
-private:
-  BytecodeAnalysis TheAnalysis;
 };
 
 } // End llvm namespace