diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-07-14 14:06:15 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-07-14 14:06:15 +0000 |
| commit | 383a324735ff039b483e4fcd9fd1182a86f70cae (patch) | |
| tree | 034c9d1d9337c6e25963617cfa72e61656d254d7 /llvm/lib/Target/IA64/IA64RegisterInfo.cpp | |
| parent | 657a203adfe3e0b1f86d640c483af0c0b63e6526 (diff) | |
| download | bcm5719-llvm-383a324735ff039b483e4fcd9fd1182a86f70cae.tar.gz bcm5719-llvm-383a324735ff039b483e4fcd9fd1182a86f70cae.zip | |
Long live the exception handling!
This patch fills the last necessary bits to enable exceptions
handling in LLVM. Currently only on x86-32/linux.
In fact, this patch adds necessary intrinsics (and their lowering) which
represent really weird target-specific gcc builtins used inside unwinder.
After corresponding llvm-gcc patch will land (easy) exceptions should be
more or less workable. However, exceptions handling support should not be
thought as 'finished': I expect many small and not so small glitches
everywhere.
llvm-svn: 39855
Diffstat (limited to 'llvm/lib/Target/IA64/IA64RegisterInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/IA64/IA64RegisterInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/IA64/IA64RegisterInfo.cpp b/llvm/lib/Target/IA64/IA64RegisterInfo.cpp index 41a15fdc5e8..08327f2efb2 100644 --- a/llvm/lib/Target/IA64/IA64RegisterInfo.cpp +++ b/llvm/lib/Target/IA64/IA64RegisterInfo.cpp @@ -102,7 +102,8 @@ void IA64RegisterInfo::reMaterialize(MachineBasicBlock &MBB, MBB.insert(I, MI); } -const unsigned* IA64RegisterInfo::getCalleeSavedRegs() const { +const unsigned* IA64RegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) + const { static const unsigned CalleeSavedRegs[] = { IA64::r5, 0 }; @@ -110,7 +111,7 @@ const unsigned* IA64RegisterInfo::getCalleeSavedRegs() const { } const TargetRegisterClass* const* -IA64RegisterInfo::getCalleeSavedRegClasses() const { +IA64RegisterInfo::getCalleeSavedRegClasses(const MachineFunction *MF) const { static const TargetRegisterClass * const CalleeSavedRegClasses[] = { &IA64::GRRegClass, 0 }; |

