Adjust what's included to compensate for changes in Parser.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14055 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-06-08 05:52:29 +00:00
parent 29dba0ceea
commit aee4f5bbfd
2 changed files with 22 additions and 0 deletions

View File

@ -14,8 +14,11 @@
#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
@ -30,6 +33,14 @@
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

View File

@ -14,8 +14,11 @@
#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
@ -30,6 +33,14 @@
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