aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/AnalyzerInternals.h
blob: d7733c7176b06f955c70d9f4559b634d97fb5958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//===-- ReaderInternals.h - Definitions internal to the reader --*- C++ -*-===//
// 
//                     The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
// 
//===----------------------------------------------------------------------===//
//
//  This header file defines various stuff that is used by the bytecode reader.
//
//===----------------------------------------------------------------------===//

#ifndef ANALYZER_INTERNALS_H
#define ANALYZER_INTERNALS_H

#include "Parser.h"
#include "llvm/Bytecode/Analyzer.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"


namespace llvm {

class BytecodeAnalyzer {
  BytecodeAnalyzer(const BytecodeAnalyzer &);  // DO NOT IMPLEMENT
  void operator=(const BytecodeAnalyzer &);  // DO NOT IMPLEMENT
public:
  BytecodeAnalyzer() { }
  ~BytecodeAnalyzer() { }

  void AnalyzeBytecode(
    const unsigned char *Buf, 
    unsigned Length,
    BytecodeAnalysis& bca,
    const std::string &ModuleID
  );

  void DumpBytecode(
    const unsigned char *Buf, 
    unsigned Length,
    BytecodeAnalysis& bca,
    const std::string &ModuleID
  );
};

} // End llvm namespace

#endif

// vim: sw=2