This is an archive of the discontinued LLVM Phabricator instance.

[LLDB][MIPS] Handle PIC calling convention for MIPS32
ClosedPublic

Authored by bhushan on Dec 7 2015, 1:23 AM.

Details

Reviewers
clayborg
Summary

This patch includes:

  1. PrepareTrivialCall() to setup register r25 with the address of function to be called. This is needed because the PIC calling convention for MIPS requires that on entry to a function, the r25 (t9) register holds the address of the function’s entry point.
  1. RegisterIsCalleeSaved() to use name of a register instead of its byte_offset.

Diff Detail

Repository
rL LLVM

Event Timeline

bhushan updated this revision to Diff 42031.Dec 7 2015, 1:23 AM
bhushan retitled this revision from to [LLDB][MIPS] Handle PIC calling convention for MIPS32.
bhushan updated this object.
bhushan added a reviewer: clayborg.
bhushan set the repository for this revision to rL LLVM.
clayborg accepted this revision.Dec 7 2015, 10:13 AM
clayborg edited edge metadata.
This revision is now accepted and ready to land.Dec 7 2015, 10:13 AM