Skip to content

Commit

Permalink
Removed unneeded/redundant code for saving/restoring registers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssunny7 committed Mar 1, 2017
1 parent feb0286 commit 66dd187
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
38 changes: 0 additions & 38 deletions dyninstAPI/src/inst-aarch64.C
Expand Up @@ -170,44 +170,6 @@ void restoreSPR(codeGen &gen, Register scratchReg, int sprnum, int stkOffset) {
insnCodeGen::generate(gen, insn);
}

////////////////////////////////////////////////////////////////////
//Generates instructions to save link register onto stack.
// Returns the number of bytes needed to store the generated
// instructions.
// The instruction storage pointer is advanced the number of
// instructions generated.
void saveLR(codeGen &gen, //Instruction storage pointer
Register scratchReg, //Scratch register
int stkOffset) //Offset from stack pointer
{
assert(0); //Not implemented

}

////////////////////////////////////////////////////////////////////
//Generates instructions to restore link register from stack.
// Returns the number of bytes needed to store the generated
// instructions.
// The instruction storage pointer is advanced the number of
// instructions generated.
//
void restoreLR(codeGen &gen, //Instruction storage pointer
Register scratchReg, //Scratch register
int stkOffset) //Offset from stack pointer
{
assert(0); //Not implemented

}

//////////////////////////////////////////////////////////////////////////
//Writes out a `br' instruction
//
void resetBR(AddressSpace *p, //Process to write instruction into
Address loc) //Address in process to write into
{
assert(0); //Not implemented
}

void saveRegisterAtOffset(codeGen &gen,
Register reg,
int save_off) {
Expand Down
8 changes: 0 additions & 8 deletions dyninstAPI/src/inst-aarch64.h
Expand Up @@ -126,14 +126,6 @@ void restoreSPR(codeGen &gen,
int sprnum,
int stkOffset);

void saveLR(codeGen &gen,
Register scratchReg,
int stkOffset);

void restoreLR(codeGen &gen,
Register scratchReg,
int stkOffset);

void saveRegister(codeGen &gen,
Register reg,
int save_off);
Expand Down

0 comments on commit 66dd187

Please sign in to comment.