-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodeGenClass.hpp
27 lines (19 loc) · 878 Bytes
/
codeGenClass.hpp
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
#ifndef CODEGENCLASS_HPP
#define CODEGENCLASS_HPP
#include "llvm_includes.hpp"
#include "util.h"
#include <iostream>
bool varIsStaticInClass(std::string ID, int classNum);
std::pair<bool, std::string> varIsStaticInAnySuperClass(std::string ID,
int classNum);
int findClassNumOfStaticVar(std::string ID);
bool isVarRegularInClass(std::string ID, int classNum);
int getIndexOfRegularField(std::string desired, int classIndex);
int getIndexOfRegularOrInheritedField(std::string ID, int classNum);
typedef int classID;
typedef int methodNum;
std::pair<classID, methodNum>
getDynamicMethodInfo(int staticClass, int staticMethod, int dynamicType);
bool methodTypeMatchesVTable(int methodReturn, int methodParam,
std::string VTableRet, std::string VTableParam);
#endif // __CODEGENCLASS_HPP_