summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCTargetMachine.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-01-18 22:36:35 +0000
committerBill Wendling <isanbard@gmail.com>2010-01-18 22:36:35 +0000
commit48814681d72242e0179d7100f263952fdf4f51d6 (patch)
treef1ba3546a5e28712014ed16f3e0e4b58d218b29e /lib/Target/PowerPC/PPCTargetMachine.h
parent59780b80176d80cd909064b7899514e157adcf6b (diff)
downloadllvm-48814681d72242e0179d7100f263952fdf4f51d6.tar.gz
llvm-48814681d72242e0179d7100f263952fdf4f51d6.tar.bz2
llvm-48814681d72242e0179d7100f263952fdf4f51d6.tar.xz
- Add getLSDAEncoding to the PowerPC backend.
- Greatly improve the comments to the getLSDAEncoding method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetMachine.h')
-rw-r--r--lib/Target/PowerPC/PPCTargetMachine.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.h b/lib/Target/PowerPC/PPCTargetMachine.h
index 3399ac8918..4afcb23415 100644
--- a/lib/Target/PowerPC/PPCTargetMachine.h
+++ b/lib/Target/PowerPC/PPCTargetMachine.h
@@ -62,6 +62,18 @@ public:
return &MachOWriterInfo;
}
+ /// getLSDAEncoding - Returns the LSDA pointer encoding. The choices are
+ /// 4-byte, 8-byte, and target default. The CIE is hard-coded to indicate that
+ /// the LSDA pointer in the FDE section is an "sdata4", and should be encoded
+ /// as a 4-byte pointer by default. However, some systems may require a
+ /// different size due to bugs or other conditions. We will default to a
+ /// 4-byte encoding unless the system tells us otherwise.
+ ///
+ /// FIXME: This call-back isn't good! We should be using the correct encoding
+ /// regardless of the system. However, there are some systems which have bugs
+ /// that prevent this from occuring.
+ virtual DwarfLSDAEncoding::Encoding getLSDAEncoding() const;
+
// Pass Pipeline Configuration
virtual bool addInstSelector(PassManagerBase &PM, CodeGenOpt::Level OptLevel);
virtual bool addPreEmitPass(PassManagerBase &PM, CodeGenOpt::Level OptLevel);