Skip to content

Commit

Permalink
Write 'isPC' in terms of 'getPC'
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Oct 30, 2023
1 parent 362d5f8 commit 0eaba94
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common/src/registers/MachRegister.C
Expand Up @@ -452,9 +452,8 @@ namespace Dyninst {
}

bool MachRegister::isPC() const {
return (*this == x86_64::rip || *this == x86::eip || *this == ppc32::pc || *this == ppc64::pc ||
*this == aarch64::pc || *this == amdgpu_gfx908::pc_all ||
*this == amdgpu_gfx90a::pc_all || *this == amdgpu_gfx940::pc_all);
if (*this == InvalidReg) return false;
return *this == getPC(getArchitecture());
}

bool MachRegister::isFramePointer() const {
Expand Down

0 comments on commit 0eaba94

Please sign in to comment.