Merge Dumper.cpp and AnalyzerWrappers.cpp into this file. Also, adjust the
[oota-llvm.git] / lib / Bytecode / Reader / AnalyzerInternals.h
1 //===-- ReaderInternals.h - Definitions internal to the reader --*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 //  This header file defines various stuff that is used by the bytecode reader.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef ANALYZER_INTERNALS_H
15 #define ANALYZER_INTERNALS_H
16
17 #include "Parser.h"
18 #include "llvm/Bytecode/Analyzer.h"
19 #include "llvm/Constants.h"
20 #include "llvm/DerivedTypes.h"
21
22
23 namespace llvm {
24
25 class BytecodeAnalyzer {
26   BytecodeAnalyzer(const BytecodeAnalyzer &);  // DO NOT IMPLEMENT
27   void operator=(const BytecodeAnalyzer &);  // DO NOT IMPLEMENT
28 public:
29   BytecodeAnalyzer() { }
30   ~BytecodeAnalyzer() { }
31
32   void AnalyzeBytecode(
33     const unsigned char *Buf, 
34     unsigned Length,
35     BytecodeAnalysis& bca,
36     const std::string &ModuleID
37   );
38
39   void DumpBytecode(
40     const unsigned char *Buf, 
41     unsigned Length,
42     BytecodeAnalysis& bca,
43     const std::string &ModuleID
44   );
45 };
46
47 } // End llvm namespace
48
49 #endif
50
51 // vim: sw=2