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/IA64 | |
parent | a73d11efd435cfa5ab275400c9881724f9224ca0 (diff) | |
download | external_llvm-2365f51ed03afe6993bae962fdc2e5a956a64cd5.zip external_llvm-2365f51ed03afe6993bae962fdc2e5a956a64cd5.tar.gz external_llvm-2365f51ed03afe6993bae962fdc2e5a956a64cd5.tar.bz2 |
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/IA64')
-rw-r--r-- | lib/Target/IA64/IA64RegisterInfo.cpp | 5 | ||||
-rw-r--r-- | lib/Target/IA64/IA64RegisterInfo.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/IA64/IA64RegisterInfo.cpp b/lib/Target/IA64/IA64RegisterInfo.cpp index 41a15fd..08327f2 100644 --- a/lib/Target/IA64/IA64RegisterInfo.cpp +++ b/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 }; diff --git a/lib/Target/IA64/IA64RegisterInfo.h b/lib/Target/IA64/IA64RegisterInfo.h index d90f321..162ad5a 100644 --- a/lib/Target/IA64/IA64RegisterInfo.h +++ b/lib/Target/IA64/IA64RegisterInfo.h @@ -47,9 +47,10 @@ struct IA64RegisterInfo : public IA64GenRegisterInfo { void reMaterialize(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, unsigned DestReg, const MachineInstr *Orig) 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; |