File: CodeOutput.cpp

package info (click to toggle)
storm-lang 0.7.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 52,004 kB
  • sloc: ansic: 261,462; cpp: 140,405; sh: 14,891; perl: 9,846; python: 2,525; lisp: 2,504; asm: 860; makefile: 678; pascal: 70; java: 52; xml: 37; awk: 12
file content (30 lines) | stat: -rw-r--r-- 575 bytes parent folder | download
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
#include "stdafx.h"
#include "CodeOutput.h"

namespace code {
	namespace dwarf {

		CodeOutput::CodeOutput() : pos(0) {}

		void CodeOutput::setFrameOffset(Offset offset) {
			fnInfo.setCFAOffset(pos, offset);
		}

		void CodeOutput::setFrameRegister(Reg reg) {
			fnInfo.setCFARegister(pos, reg);
		}

		void CodeOutput::setFrame(Reg reg, Offset offset) {
			fnInfo.setCFA(pos, reg, offset);
		}

		void CodeOutput::markSaved(Reg reg, Offset offset) {
			fnInfo.preserve(pos, reg, offset);
		}

		void CodeOutput::markReturnAuth() {
			fnInfo.markReturnAuth(pos);
		}

	}
}