summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCRegisterInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/MC/MCRegisterInfo.cpp')
-rw-r--r--llvm/lib/MC/MCRegisterInfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCRegisterInfo.cpp b/llvm/lib/MC/MCRegisterInfo.cpp
index ce79cd5c2c6..7af81fc7913 100644
--- a/llvm/lib/MC/MCRegisterInfo.cpp
+++ b/llvm/lib/MC/MCRegisterInfo.cpp
@@ -84,3 +84,10 @@ int MCRegisterInfo::getSEHRegNum(unsigned RegNum) const {
if (I == L2SEHRegs.end()) return (int)RegNum;
return I->second;
}
+
+int MCRegisterInfo::getCodeViewRegNum(unsigned RegNum) const {
+ const DenseMap<unsigned, int>::const_iterator I = L2CVRegs.find(RegNum);
+ if (I == L2CVRegs.end())
+ report_fatal_error("target does not implement codeview register mapping");
+ return I->second;
+}
OpenPOWER on IntegriCloud