From: Craig Topper Date: Fri, 26 Dec 2014 06:36:23 +0000 (+0000) Subject: Use MCPhysReg for table of register encodings. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=50d894e4d3b2dd7827463b30c4f61fc4c1c4824b;p=oota-llvm.git Use MCPhysReg for table of register encodings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224845 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp b/lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp index 9c49a113638..12e900ec50c 100644 --- a/lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp +++ b/lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp @@ -165,9 +165,9 @@ public: } unsigned ChooseFrameReg(MVT::SimpleValueType VT) const { - static const unsigned Candidates[] = { X86::RBP, X86::RAX, X86::RBX, - X86::RCX, X86::RDX, X86::RDI, - X86::RSI }; + static const MCPhysReg Candidates[] = { X86::RBP, X86::RAX, X86::RBX, + X86::RCX, X86::RDX, X86::RDI, + X86::RSI }; for (unsigned Reg : Candidates) { if (!std::count(BusyRegs.begin(), BusyRegs.end(), Reg)) return convReg(Reg, VT);