From: Bill Wendling Date: Thu, 30 Jun 2011 23:47:14 +0000 (+0000) Subject: Use the correct registers on X86_64. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2374cb8e7d05082e15e2ae9950bab87aa2c664c9;p=oota-llvm.git Use the correct registers on X86_64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134208 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index 20f8992b84c..d32b8225f8e 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; }