summaryrefslogtreecommitdiff
path: root/lib/Bytecode/Analyzer/BytecodeHandler.cpp
blob: 24159588675a8d1dc49f531e48302755a23d4bfe (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
//===-- BytecodeHandler.cpp - Parsing Handler -------------------*- C++ -*-===//
// 
//                     The LLVM Compiler Infrastructure
//
// This file was developed by Reid Spencer and is distributed under the 
// University of Illinois Open Source License. See LICENSE.TXT for details.
// 
//===----------------------------------------------------------------------===//
//
//  This header file defines the BytecodeHandler class that gets called by the
//  AbstractBytecodeParser when parsing events occur.
//
//===----------------------------------------------------------------------===//

#include "BytecodeHandler.h"

using namespace llvm;

bool BytecodeHandler::handleError(const std::string& str )
{
  return false;
}

void BytecodeHandler::handleStart()
{
}

void BytecodeHandler::handleFinish()
{
}

void BytecodeHandler::handleModuleBegin(const std::string& id)
{
}

void BytecodeHandler::handleModuleEnd(const std::string& id)
{
}

void BytecodeHandler::handleVersionInfo(
  unsigned char RevisionNum,        ///< Byte code revision number
  Module::Endianness Endianness,    ///< Endianness indicator
  Module::PointerSize PointerSize   ///< PointerSize indicator
)
{
}

void BytecodeHandler::handleModuleGlobalsBegin()
{
}

void BytecodeHandler::handleGlobalVariable( 
  const Type* ElemType,     ///< The type of the global variable
  bool isConstant,          ///< Whether the GV is constant or not
  GlobalValue::LinkageTypes ///< The linkage type of the GV
)
{
}

void BytecodeHandler::handleInitializedGV( 
  const Type* ElemType,     ///< The type of the global variable
  bool isConstant,          ///< Whether the GV is constant or not
  GlobalValue::LinkageTypes,///< The linkage type of the GV
  unsigned initSlot         ///< Slot number of GV's initializer
)
{
}

void BytecodeHandler::handleType( const Type* Ty ) 
{
}

void BytecodeHandler::handleFunctionDeclaration( 
  const Type* FuncType      ///< The type of the function
)
{
}

void BytecodeHandler::handleModuleGlobalsEnd()
{
}

void BytecodeHandler::handleCompactionTableBegin()
{
}

void BytecodeHandler::handleCompactionTablePlane( 
  unsigned Ty, 
  unsigned NumEntries
)
{
}

void BytecodeHandler::handleCompactionTableType( 
  unsigned i, 
  unsigned TypSlot, 
  const Type* 
)
{
}

void BytecodeHandler::handleCompactionTableValue( 
  unsigned i, 
  unsigned ValSlot, 
  const Type* 
)
{
}

void BytecodeHandler::handleCompactionTableEnd()
{
}

void BytecodeHandler::handleSymbolTableBegin()
{
}

void BytecodeHandler::handleSymbolTablePlane( 
  unsigned Ty, 
  unsigned NumEntries, 
  const Type* Typ
)
{
}

void BytecodeHandler::handleSymbolTableType( 
  unsigned i, 
  unsigned slot, 
  const std::string& name 
)
{
}

void BytecodeHandler::handleSymbolTableValue( 
  unsigned i, 
  unsigned slot, 
  const std::string& name 
)
{
}

void BytecodeHandler::handleSymbolTableEnd()
{
}

void BytecodeHandler::handleFunctionBegin(
  const Type* FType, 
  GlobalValue::LinkageTypes linkage 
)
{
}

void BytecodeHandler::handleFunctionEnd(
  const Type* FType
)
{
}

void BytecodeHandler::handleBasicBlockBegin(
  unsigned blocknum
)
{
}

bool BytecodeHandler::handleInstruction(
  unsigned Opcode, 
  const Type* iType, 
  std::vector<unsigned>& Operands
)
{
  return false;
}

void BytecodeHandler::handleBasicBlockEnd(unsigned blocknum)
{
}

void BytecodeHandler::handleGlobalConstantsBegin()
{
}

void BytecodeHandler::handleConstantExpression( 
    unsigned Opcode, 
    const Type* Typ, 
    std::vector<std::pair<const Type*,unsigned> > ArgVec 
  )
{
}

void BytecodeHandler::handleConstantValue( Constant * c )
{
}

void BytecodeHandler::handleConstantArray( 
        const ArrayType* AT, 
        std::vector<unsigned>& Elements )
{
}

void BytecodeHandler::handleConstantStruct(
      const StructType* ST,
      std::vector<unsigned>& ElementSlots)
{
}

void BytecodeHandler::handleConstantPointer(
      const PointerType* PT, unsigned Slot)
{
}

void BytecodeHandler::handleConstantString( const ConstantArray* CA ) 
{
}


void BytecodeHandler::handleGlobalConstantsEnd()
{
}

// vim: sw=2