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 | aee4f5bbfd492ffd402161ec9fa9e9c7bdd55712 (patch) | |
tree | 4972b4a2f6b0a06e2e1e66cf4ab92deb6af4741b /lib/Bytecode | |
parent | 29dba0ceea24fe7a68d9ff20b0cb0123636c78c5 (diff) |
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
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Analyzer/AnalyzerInternals.h | 11 | ||||
-rw-r--r-- | lib/Bytecode/Reader/AnalyzerInternals.h | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/lib/Bytecode/Analyzer/AnalyzerInternals.h b/lib/Bytecode/Analyzer/AnalyzerInternals.h index d9a2e843d8..a1a393d297 100644 --- a/lib/Bytecode/Analyzer/AnalyzerInternals.h +++ b/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/lib/Bytecode/Reader/AnalyzerInternals.h b/lib/Bytecode/Reader/AnalyzerInternals.h index d9a2e843d8..a1a393d297 100644 --- a/lib/Bytecode/Reader/AnalyzerInternals.h +++ b/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 |