Adjust what's included to compensate for changes in Parser.h
authorReid Spencer <rspencer@reidspencer.com>
Tue, 8 Jun 2004 05:52:29 +0000 (05:52 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 8 Jun 2004 05:52:29 +0000 (05:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14055 91177308-0d34-0410-b5e6-96231b3b80d8

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

index d9a2e843d808ef77ab771ae0336fefbf3991c325..a1a393d29760edbeedf30ac321ee1e0cf78b9f27 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
 
 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
index d9a2e843d808ef77ab771ae0336fefbf3991c325..a1a393d29760edbeedf30ac321ee1e0cf78b9f27 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
 
 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