summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-12-26 06:36:23 +0000
committerCraig Topper <craig.topper@gmail.com>2014-12-26 06:36:23 +0000
commit2e44492b1d16801ec8a7e8ddc25d12a973ea7ec6 (patch)
tree30068c8cd3c0843683e57c238287da88e55dae7e /llvm/lib
parente60488a4aecb32bf7e0eb4b4333e86e813e60698 (diff)
downloadbcm5719-llvm-2e44492b1d16801ec8a7e8ddc25d12a973ea7ec6.tar.gz
bcm5719-llvm-2e44492b1d16801ec8a7e8ddc25d12a973ea7ec6.zip
Use MCPhysReg for table of register encodings.
llvm-svn: 224845
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp
index 9c49a113638..12e900ec50c 100644
--- a/llvm/lib/Target/X86/AsmParser/X86AsmInstrumentation.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud