[codeview] Bail on a DBG_VALUE register operand with no register
authorReid Kleckner <rnk@google.com>
Tue, 16 Feb 2016 21:49:26 +0000 (21:49 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 16 Feb 2016 21:49:26 +0000 (21:49 +0000)
commit9a593ee7d2455d65d4bab038174b00dde5714289
treea2e8e79365eb7fc558260486add6723d575b9b4e
parentf8f8f093aa8ba0ded2ff102d3681df11b8e68c67
[codeview] Bail on a DBG_VALUE register operand with no register

This apparently comes up when the register allocator decides that a
variable will become undef along a certain path.

Also improve the error message we emit when we can't map from LLVM
register number to CV register number.

llvm-svn: 261016
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/lib/MC/MCRegisterInfo.cpp