diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-06-30 23:47:14 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-06-30 23:47:14 +0000 |
commit | 2374cb8e7d05082e15e2ae9950bab87aa2c664c9 (patch) | |
tree | f7579c0490a86d3767060ac9b362d206eb904457 /lib/Target/X86/X86RegisterInfo.cpp | |
parent | 098c7ac7c8bbc519a4ef4ab242140be459f0dae2 (diff) | |
download | external_llvm-2374cb8e7d05082e15e2ae9950bab87aa2c664c9.zip external_llvm-2374cb8e7d05082e15e2ae9950bab87aa2c664c9.tar.gz external_llvm-2374cb8e7d05082e15e2ae9950bab87aa2c664c9.tar.bz2 |
Use the correct registers on X86_64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86RegisterInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86RegisterInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index 20f8992..d32b822 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/lib/Target/X86/X86RegisterInfo.cpp @@ -110,10 +110,10 @@ int X86RegisterInfo::getLLVMRegNum(unsigned DwarfRegNo, bool isEH) const { int X86RegisterInfo::getCompactUnwindRegNum(unsigned RegNum) const { switch (RegNum) { case X86::EBX: case X86::RBX: return 1; - case X86::ECX: case X86::RCX: return 2; - case X86::EDX: case X86::RDX: return 3; - case X86::EDI: case X86::RDI: return 4; - case X86::ESI: case X86::RSI: return 5; + case X86::ECX: case X86::R12: return 2; + case X86::EDX: case X86::R13: return 3; + case X86::EDI: case X86::R14: return 4; + case X86::ESI: case X86::R15: return 5; case X86::EBP: case X86::RBP: return 6; } |