summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-06-09 06:15:21 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-06-09 06:15:21 +0000
commitfc6f5508aa6d6080ee135546383e52a35b9dc530 (patch)
tree0cb827410a362476f839c390d2d77da15e7ed34b /llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h
parent670c26d3afad82e7eb27b7eb7d01625611b1544c (diff)
downloadbcm5719-llvm-fc6f5508aa6d6080ee135546383e52a35b9dc530.tar.gz
bcm5719-llvm-fc6f5508aa6d6080ee135546383e52a35b9dc530.zip
Move parsing details to Parser.cpp.
llvm-svn: 14088
Diffstat (limited to 'llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h')
-rw-r--r--llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h b/llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h
index a1a393d2976..d7733c7176b 100644
--- a/llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h
+++ b/llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h
@@ -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 @@ public:
BytecodeAnalysis& bca,
const std::string &ModuleID
);
-
- void dump() const {
- std::cerr << "BytecodeParser instance!\n";
- }
-private:
- BytecodeAnalysis TheAnalysis;
};
} // End llvm namespace
OpenPOWER on IntegriCloud