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);
}
}
}
|