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

LLVM llvm at cs.uiuc.edu
Tue Jun 8 00:58:01 PDT 2004


Changes in directory llvm/lib/Bytecode/Analyzer:

AnalyzerInternals.h updated: 1.1 -> 1.2

---
Log message:

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


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

Index: llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h
diff -u llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h:1.1 llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h:1.2
--- llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h:1.1	Mon Jun  7 12:53:43 2004
+++ llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h	Tue Jun  8 00:52:29 2004
@@ -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
@@ -29,6 +32,14 @@
 #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





More information about the llvm-commits mailing list