summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-11-13 19:13:01 +0000
committerDale Johannesen <dalej@apple.com>2007-11-13 19:13:01 +0000
commitb97aec663b1591e71c9ddee6dbb327d1b827eda5 (patch)
tree3d64d118c4e371a7ff0a0da507e580b94007768c /include
parent120119da1354e725da310fc3631162f18393d61b (diff)
downloadexternal_llvm-b97aec663b1591e71c9ddee6dbb327d1b827eda5.zip
external_llvm-b97aec663b1591e71c9ddee6dbb327d1b827eda5.tar.gz
external_llvm-b97aec663b1591e71c9ddee6dbb327d1b827eda5.tar.bz2
Add parameter to getDwarfRegNum to permit targets
to use different mappings for EH and debug info; no functional change yet. Fix warning in X86CodeEmitter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/MRegisterInfo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h
index cfe304f..bff74de 100644
--- a/include/llvm/Target/MRegisterInfo.h
+++ b/include/llvm/Target/MRegisterInfo.h
@@ -677,8 +677,10 @@ public:
/// Debug information queries.
/// getDwarfRegNum - Map a target register to an equivalent dwarf register
- /// number. Returns -1 if there is no equivalent value.
- virtual int getDwarfRegNum(unsigned RegNum) const = 0;
+ /// number. Returns -1 if there is no equivalent value. The second
+ /// parameter allows targets to use different numberings for EH info and
+ /// deubgging info.
+ virtual int getDwarfRegNum(unsigned RegNum, bool isEH) const = 0;
/// getFrameRegister - This method should return the register used as a base
/// for values allocated in the current stack frame.