label.h 266 B

12345678910111213
  1. #ifndef LABEL_H
  2. #define LABEL_H
  3. struct Label{
  4. string name; //name of label
  5. int def,ref; //pos of defn and goto/restore src
  6. int data_sz; //size of data at this label.
  7. Label( const string &n,int d,int r,int sz ):name(n),def(d),ref(r),data_sz(sz){}
  8. };
  9. #endif