[codeview] Add EFLAGS to the list of CodeView register numbers

llvm-svn: 273516
This commit is contained in:
Reid Kleckner 2016-06-22 23:50:19 +00:00
parent 3cb4ddeb4e
commit 5340b279ae
1 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,9 @@ void X86_MC::initLLVMToSEHAndCVRegMapping(MCRegisterInfo *MRI) {
for (unsigned I = 0; I < array_lengthof(LowCVRegs); ++I) for (unsigned I = 0; I < array_lengthof(LowCVRegs); ++I)
MRI->mapLLVMRegToCVReg(LowCVRegs[I], I + CVLowRegStart); MRI->mapLLVMRegToCVReg(LowCVRegs[I], I + CVLowRegStart);
// The x86 registers start at 128 and are numbered sequentially. MRI->mapLLVMRegToCVReg(X86::EFLAGS, 34);
// The x87 registers start at 128 and are numbered sequentially.
unsigned FP0Start = 128; unsigned FP0Start = 128;
for (unsigned I = 0; I < 8; ++I) for (unsigned I = 0; I < 8; ++I)
MRI->mapLLVMRegToCVReg(X86::FP0 + I, FP0Start + I); MRI->mapLLVMRegToCVReg(X86::FP0 + I, FP0Start + I);