proc: Remove (*Arch).Prologues method (#2192)

It returns an unexported type and is only used in a single place.
This commit is contained in:
Alessandro Arzilli 2020-10-13 00:05:28 +02:00 committed by GitHub
parent db716e4678
commit a2550b4809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

@ -59,12 +59,6 @@ func (a *Arch) MaxInstructionLength() int {
return a.maxInstructionLength return a.maxInstructionLength
} }
// Prologues returns a list of stack split prologues
// that are inserted at function entry.
func (a *Arch) Prologues() []opcodeSeq {
return a.prologues
}
// BreakpointInstruction is the instruction that will trigger a breakpoint trap for // BreakpointInstruction is the instruction that will trigger a breakpoint trap for
// the given architecture. // the given architecture.
func (a *Arch) BreakpointInstruction() []byte { func (a *Arch) BreakpointInstruction() []byte {

@ -83,7 +83,7 @@ func firstPCAfterPrologueDisassembly(p Process, fn *Function, sameline bool) (ui
return fn.Entry, nil return fn.Entry, nil
} }
for _, prologue := range p.BinInfo().Arch.Prologues() { for _, prologue := range p.BinInfo().Arch.prologues {
if len(prologue) >= len(text) { if len(prologue) >= len(text) {
continue continue
} }