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 | 2365f51ed03afe6993bae962fdc2e5a956a64cd5 (patch) | |
tree | 8b31c4075bfb21456ae1257eb68b2368220f7840 /lib/Target/Sparc | |
parent | a73d11efd435cfa5ab275400c9881724f9224ca0 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcRegisterInfo.cpp | 5 | ||||
-rw-r--r-- | lib/Target/Sparc/SparcRegisterInfo.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/Sparc/SparcRegisterInfo.cpp b/lib/Target/Sparc/SparcRegisterInfo.cpp index ded1bcd836..1981b4fe30 100644 --- a/lib/Target/Sparc/SparcRegisterInfo.cpp +++ b/lib/Target/Sparc/SparcRegisterInfo.cpp @@ -121,7 +121,8 @@ MachineInstr *SparcRegisterInfo::foldMemoryOperand(MachineInstr* MI, return NewMI; } -const unsigned* SparcRegisterInfo::getCalleeSavedRegs() const { +const unsigned* SparcRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) + const { static const unsigned CalleeSavedRegs[] = { 0 }; return CalleeSavedRegs; } @@ -143,7 +144,7 @@ BitVector SparcRegisterInfo::getReservedRegs(const MachineFunction &MF) const { const TargetRegisterClass* const* -SparcRegisterInfo::getCalleeSavedRegClasses() const { +SparcRegisterInfo::getCalleeSavedRegClasses(const MachineFunction *MF) const { static const TargetRegisterClass * const CalleeSavedRegClasses[] = { 0 }; return CalleeSavedRegClasses; } diff --git a/lib/Target/Sparc/SparcRegisterInfo.h b/lib/Target/Sparc/SparcRegisterInfo.h index b7ea4d6f4c..451964b2f7 100644 --- a/lib/Target/Sparc/SparcRegisterInfo.h +++ b/lib/Target/Sparc/SparcRegisterInfo.h @@ -51,9 +51,10 @@ struct SparcRegisterInfo : public SparcGenRegisterInfo { unsigned OpNum, int FrameIndex) const; - const unsigned *getCalleeSavedRegs() const; + const unsigned *getCalleeSavedRegs(const MachineFunction *MF = 0) const; - const TargetRegisterClass* const* getCalleeSavedRegClasses() const; + const TargetRegisterClass* const* getCalleeSavedRegClasses( + const MachineFunction *MF = 0) const; BitVector getReservedRegs(const MachineFunction &MF) const; |