jak-project/goalc/compiler/Label.h

14 lines
304 B
C
Raw Normal View History

#ifndef JAK_LABEL_H
#define JAK_LABEL_H
2020-09-07 19:17:48 -04:00
class FunctionEnv;
struct Label {
Label() = default;
Label(FunctionEnv* f, int _idx = -1) : func(f), idx(_idx) {}
FunctionEnv* func = nullptr;
int idx = -1;
std::string print() const { return "label-" + std::to_string(idx); }
};
#endif // JAK_LABEL_H