diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-06-08 05:52:29 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-06-08 05:52:29 +0000 |
commit | 621a4ad111b6b0e04aeaa0a0dbbcb61af1b03ce5 (patch) | |
tree | 37b11898fc767d5f96ac6fb036e2a4cbcbf3ce27 /llvm/lib/Bytecode | |
parent | fbe659d435f4197fe05301400f7ac8a2120ffe74 (diff) | |
download | bcm5719-llvm-621a4ad111b6b0e04aeaa0a0dbbcb61af1b03ce5.tar.gz bcm5719-llvm-621a4ad111b6b0e04aeaa0a0dbbcb61af1b03ce5.zip |
Adjust what's included to compensate for changes in Parser.h
llvm-svn: 14055
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r-- | llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h | 11 | ||||
-rw-r--r-- | llvm/lib/Bytecode/Reader/AnalyzerInternals.h | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h b/llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h index d9a2e843d80..a1a393d2976 100644 --- a/llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h +++ b/llvm/lib/Bytecode/Analyzer/AnalyzerInternals.h @@ -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 diff --git a/llvm/lib/Bytecode/Reader/AnalyzerInternals.h b/llvm/lib/Bytecode/Reader/AnalyzerInternals.h index d9a2e843d80..a1a393d2976 100644 --- a/llvm/lib/Bytecode/Reader/AnalyzerInternals.h +++ b/llvm/lib/Bytecode/Reader/AnalyzerInternals.h @@ -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 |