From 5340b279aec752e1a94d20ea0e922ca074b27498 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 22 Jun 2016 23:50:19 +0000 Subject: [PATCH] [codeview] Add EFLAGS to the list of CodeView register numbers llvm-svn: 273516 --- llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp index 91acb8d08f6f..8f34c5b09c85 100644 --- a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp +++ b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp @@ -84,7 +84,9 @@ void X86_MC::initLLVMToSEHAndCVRegMapping(MCRegisterInfo *MRI) { for (unsigned I = 0; I < array_lengthof(LowCVRegs); ++I) 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; for (unsigned I = 0; I < 8; ++I) MRI->mapLLVMRegToCVReg(X86::FP0 + I, FP0Start + I);